C# Class Forge.Unity.DataRenderer

Base MonoBehavior type that can be used to implement custom data renderers. DataRenderers need to be annotated with a CustomDataRegistry attribute.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: jacobdufault/forge-unity

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Initialize ( IQueryableEntity entity ) : void
UpdateVisualization ( float percentage ) : void

Called when the visualization should be updated. Visualizations are updated continuously, often multiple times between game updates.

Méthodes protégées

Méthode Description
Interpolate ( Vector3 start, Vector3 end, float percentage ) : Vector3
Interpolate ( float start, float end, float percentage ) : float
OnDestroy ( ) : void

Called when the DataRenderer has been destroyed by Unity. Removes the DataRenderer from the DataRendererManager.

OnInitialize ( ) : void

Called when the renderer has been initialized. The entity that this renderer will operate on is populated under Entity.

Method Details

Initialize() public méthode

public Initialize ( IQueryableEntity entity ) : void
entity IQueryableEntity
Résultat void

Interpolate() protected static méthode

protected static Interpolate ( Vector3 start, Vector3 end, float percentage ) : Vector3
start UnityEngine.Vector3
end UnityEngine.Vector3
percentage float
Résultat UnityEngine.Vector3

Interpolate() protected static méthode

protected static Interpolate ( float start, float end, float percentage ) : float
start float
end float
percentage float
Résultat float

OnDestroy() protected méthode

Called when the DataRenderer has been destroyed by Unity. Removes the DataRenderer from the DataRendererManager.
protected OnDestroy ( ) : void
Résultat void

OnInitialize() protected abstract méthode

Called when the renderer has been initialized. The entity that this renderer will operate on is populated under Entity.
protected abstract OnInitialize ( ) : void
Résultat void

UpdateVisualization() public abstract méthode

Called when the visualization should be updated. Visualizations are updated continuously, often multiple times between game updates.
public abstract UpdateVisualization ( float percentage ) : void
percentage float The interpolation percentage that should be used between the /// last frame and this frame.
Résultat void