Class CesiumGlobeAnchorScript
- Namespace
- LibreRally
- Assembly
- LibreRally.dll
Applies a CesiumGlobeAnchorComponent to the owning entity at runtime.
[ComponentCategory("LibreRally")]
public sealed class CesiumGlobeAnchorScript : SyncScript, IIdentifiable, ICollectorHolder
- Inheritance
-
SyncScriptCesiumGlobeAnchorScript
- Implements
-
IIdentifiableICollectorHolder
- Inherited Members
Properties
GeoreferenceEntity
Gets or sets the entity that owns the georeference component.
public Entity? GeoreferenceEntity { get; set; }
Property Value
Methods
Start()
Resolves required components and applies the initial anchored transform.
public override void Start()
Exceptions
- InvalidOperationException
Thrown when the entity is missing a CesiumGlobeAnchorComponent or the scene has no CesiumGeoreferenceComponent.
Update()
Reapplies the anchored transform whenever the anchor or georeference changes.
public override void Update()