Table of Contents

Class BlockRootController

Namespace
EasyAR.Mega.Scene
Assembly
EasyAR.Mega.Scene.dll

The parent node of all Blocks in the scene. It is usually generated by Mega Studio in edit mode.

[DisallowMultipleComponent]
[RequireComponent(typeof(BlockActiveController))]
public class BlockRootController : MonoBehaviour
Inheritance
BlockRootController

Fields

ActiveControl

The control strategy of activeSelf.

public BlockActiveController.Strategy ActiveControl

Field Value

Properties

AnnotationGroups

public List<AnnotationGroup> AnnotationGroups { get; }

Property Value

AnnotationNodes

public List<AnnotationNode> AnnotationNodes { get; }

Property Value

Blocks

public List<BlockController> Blocks { get; }

Property Value

Location

GPS information. It only has values in the following two cases: 1) When editing, one of the blocks under it is imported by Mega Studio and the block eme has GPS information; 2) When running, use Hold(BlockInfo, Location) to hold a block.

public Location? Location { get; }

Property Value

NavPointGraphs

All validNavPointGraph.

public List<NavPointGraph> NavPointGraphs { get; }

Property Value

StudioTool

The Studio tool currently controlling the Block, only used to indicate the tool in edit mode.

public GameObject StudioTool { get; set; }

Property Value

Events

BlockFound

The event to find a Block.

public event Action BlockFound

Event Type

BlockLost

The event of a Block being lost.

public event Action BlockLost

Event Type