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
파일 보기 프로젝트 열기: jacobdufault/forge-unity

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