Class BlockRootController
在場景中所有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