Table of Contents

Class BlockRootController

命名空间
EasyAR.Mega.Scene
程序集
EasyAR.Mega.Scene.dll

在场景中所有Block的父节点。它通常由Mega Studio在编辑模式下生成。

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

字段

ActiveControl

activeSelf的控制策略。

public BlockActiveController.Strategy ActiveControl

属性

AnnotationGroups

根节点下的所有AnnotationGroup

public List<AnnotationGroup> AnnotationGroups { get; }

AnnotationNodes

根节点下的所有AnnotationNode

public List<AnnotationNode> AnnotationNodes { get; }

Blocks

根节点下的所有BlockController

public List<BlockController> Blocks { get; }

Location

GPS信息。它只在如下两种情况下有值:1)在编辑时,它下面其中一个block由Mega Studio导入且block eme有GPS信息;2)在运行时,使用Hold(BlockInfo, Location)持有了一个block。

public Location? Location { get; }

NavPointGraphs

根节点下的所有有效NavPointGraph

public List<NavPointGraph> NavPointGraphs { get; }

StudioTool

当前控制block的Studio工具,仅用来在编辑模式下指示工具。

public GameObject StudioTool { get; set; }

事件

BlockFound

找到一个Block的事件。

public event Action BlockFound

BlockLost

一个Block丢失的事件。

public event Action BlockLost