C# Class LineDrawer

Inheritance: MonoBehaviour
Afficher le fichier Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Méthodes publiques

Свойство Type Description
MaterialLine Material

Méthodes protégées

Méthode Description
Draw_AnimatedBox ( AnimatedBox box ) : bool
Draw_Box ( Vector3 center, Quaternion rotation, Color color, Vector3 halfSize, float lineWidth = DefaultLineWidth ) : bool
Draw_Circle ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth ) : bool
Draw_Circle_Partial ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth, float circleAngleArc = 360.0f ) : bool
Draw_Cube ( Vector3 point, Color color, float halfSize = DefaultLineWidth ) : bool
Draw_Line ( Vector3 start, Vector3 end, Color colorStart, Color colorEnd, float lineWidth = DefaultLineWidth ) : bool
Draw_TransformBasis ( Transform transformToDraw, float basisLength = DefaultBasisLength, float lineWidth = DefaultLineWidth*2.0f ) : bool
LineDraw_Begin ( ) : void
LineDraw_End ( bool needsUpdate ) : void
OnDestroy ( ) : void

Private Methods

Méthode Description
Lines_LineDataToMesh ( ) : void

Method Details

Draw_AnimatedBox() protected méthode

protected Draw_AnimatedBox ( AnimatedBox box ) : bool
box AnimatedBox
Résultat bool

Draw_Box() protected méthode

protected Draw_Box ( Vector3 center, Quaternion rotation, Color color, Vector3 halfSize, float lineWidth = DefaultLineWidth ) : bool
center Vector3
rotation Quaternion
color Color
halfSize Vector3
lineWidth float
Résultat bool

Draw_Circle() protected méthode

protected Draw_Circle ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth ) : bool
center Vector3
normal Vector3
color Color
radius float
lineWidth float
Résultat bool

Draw_Circle_Partial() protected méthode

protected Draw_Circle_Partial ( Vector3 center, Vector3 normal, Color color, float radius = 0.25f, float lineWidth = DefaultLineWidth, float circleAngleArc = 360.0f ) : bool
center Vector3
normal Vector3
color Color
radius float
lineWidth float
circleAngleArc float
Résultat bool

Draw_Cube() protected méthode

protected Draw_Cube ( Vector3 point, Color color, float halfSize = DefaultLineWidth ) : bool
point Vector3
color Color
halfSize float
Résultat bool

Draw_Line() protected méthode

protected Draw_Line ( Vector3 start, Vector3 end, Color colorStart, Color colorEnd, float lineWidth = DefaultLineWidth ) : bool
start Vector3
end Vector3
colorStart Color
colorEnd Color
lineWidth float
Résultat bool

Draw_TransformBasis() protected méthode

protected Draw_TransformBasis ( Transform transformToDraw, float basisLength = DefaultBasisLength, float lineWidth = DefaultLineWidth*2.0f ) : bool
transformToDraw Transform
basisLength float
lineWidth float
Résultat bool

LineDraw_Begin() protected méthode

protected LineDraw_Begin ( ) : void
Résultat void

LineDraw_End() protected méthode

protected LineDraw_End ( bool needsUpdate ) : void
needsUpdate bool
Résultat void

OnDestroy() protected méthode

protected OnDestroy ( ) : void
Résultat void

Property Details

MaterialLine public_oe property

public Material MaterialLine
Résultat Material