C# Класс Forge.Unity.DataRenderer

Base MonoBehavior type that can be used to implement custom data renderers. DataRenderers need to be annotated with a CustomDataRegistry attribute.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

Initialize() публичный Метод

public Initialize ( IQueryableEntity entity ) : void
entity IQueryableEntity
Результат void

Interpolate() защищенный статический Метод

protected static Interpolate ( Vector3 start, Vector3 end, float percentage ) : Vector3
start UnityEngine.Vector3
end UnityEngine.Vector3
percentage float
Результат UnityEngine.Vector3

Interpolate() защищенный статический Метод

protected static Interpolate ( float start, float end, float percentage ) : float
start float
end float
percentage float
Результат float

OnDestroy() защищенный Метод

Called when the DataRenderer has been destroyed by Unity. Removes the DataRenderer from the DataRendererManager.
protected OnDestroy ( ) : void
Результат void

OnInitialize() защищенный абстрактный Метод

Called when the renderer has been initialized. The entity that this renderer will operate on is populated under Entity.
protected abstract OnInitialize ( ) : void
Результат void

UpdateVisualization() публичный абстрактный Метод

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.
Результат void