Table of Contents

Class BlockRootController

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

Übergeordneter Knoten aller Blöcke in der Szene. Wird normalerweise von Mega Studio im Bearbeitungsmodus generiert.

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

Felder

ActiveControl

Die Kontrollstrategie von activeSelf.

public BlockActiveController.Strategy ActiveControl

Eigenschaften

AnnotationGroups

Alle AnnotationGroup unter dem Root-Knoten.

public List<AnnotationGroup> AnnotationGroups { get; }

AnnotationNodes

Alle AnnotationNode unter dem Root-Knoten.

public List<AnnotationNode> AnnotationNodes { get; }

Blocks

Alle BlockController unter dem Root-Knoten.

public List<BlockController> Blocks { get; }

Location

GPS-Informationen. Nur in zwei Fällen vorhanden: 1) Während der Bearbeitung, wenn ein untergeordneter Block von Mega Studio importiert wurde und der Block EME GPS-Daten enthält; 2) Zur Laufzeit bei Verwendung von Hold(BlockInfo, Location) zum Halten eines Blocks.

public Location? Location { get; }

NavPointGraphs

Alle gültigen NavPointGraph unter dem Root-Knoten.

public List<NavPointGraph> NavPointGraphs { get; }

StudioTool

Das aktuelle Studio-Tool zur Blocksteuerung, dient nur zur Anzeige des Tools im Bearbeitungsmodus.

public GameObject StudioTool { get; set; }

Ereignisse

BlockFound

Ereignis zum Auffinden eines Blocks.

public event Action BlockFound

BlockLost

Ereignis bei Verlust eines Blocks.

public event Action BlockLost