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 typically generated by Mega Studio in edit mode.

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

Fields

ActiveControl

Control policy for activeSelf.

public BlockActiveController.Strategy ActiveControl

Field Value

Properties

AnnotationGroups

All AnnotationGroup under the root node.

public List<AnnotationGroup> AnnotationGroups { get; }

Property Value

AnnotationNodes

All AnnotationNode under the root node.

public List<AnnotationNode> AnnotationNodes { get; }

Property Value

Blocks

All BlockController under the root node.

public List<BlockController> Blocks { get; }

Property Value

Location

GPS information. It has a value only in the following two cases: 1) At edit-time, when one of its child blocks is imported by Mega Studio and the block eme has GPS information; 2) At runtime, when holding a block using Hold(BlockInfo, Location).

public Location? Location { get; }

Property Value

NavPointGraphs

All valid NavPointGraph under the root node.

public List<NavPointGraph> NavPointGraphs { get; }

Property Value

StudioTool

The Studio tool currently controlling the block, used solely to indicate the tool in edit mode.

public GameObject StudioTool { get; set; }

Property Value

Events

BlockFound

Event when a Block is found.

public event Action BlockFound

Event Type

BlockLost

Event when a Block is lost.

public event Action BlockLost

Event Type