Class Point
Draw point as primitive sphere object If Transform is given in the constructor, follow the transform origin in every frame
Inherited Members
Namespace: Marus.Visualization.Primitives
Assembly: cs.temp.dll.dll
Syntax
public class Point : VisualElement
Constructors
Point(UnityEngine.Transform)
Constructor which initializes point with given GamObject transform
Declaration
public Point(UnityEngine.Transform pointInWorld)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | pointInWorld | GameObject's transform reference |
Point(UnityEngine.Transform, Single)
Constructor which initializes point with given GamObject transform and point size
Declaration
public Point(UnityEngine.Transform pointInWorld, float pointSize)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | pointInWorld | GameObject's transform reference |
System.Single | pointSize | Point size |
Point(UnityEngine.Transform, Single, Color)
Constructor which initializes point with given GamObject transform, point size and color
Declaration
public Point(UnityEngine.Transform pointInWorld, float pointSize, Color pointColor)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | pointInWorld | GameObject's transform reference |
System.Single | pointSize | Point size |
Color | pointColor | Point color |
Point(Vector3)
Constructor which initializes point with given position
Declaration
public Point(Vector3 pointInWorld)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pointInWorld | Position in space |
Point(Vector3, Single)
Constructor which initializes point with given position and size
Declaration
public Point(Vector3 pointInWorld, float pointSize)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pointInWorld | Position in space |
System.Single | pointSize | Point size |
Point(Vector3, Single, Color)
Constructor which initializes point with given position, size and color
Declaration
public Point(Vector3 pointInWorld, float pointSize, Color pointColor)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pointInWorld | Position in space |
System.Single | pointSize | Point size |
Color | pointColor | Point color |
Fields
_pointTransform
Reference to object's transform property
Declaration
public UnityEngine.Transform _pointTransform
Field Value
Type | Description |
---|---|
UnityEngine.Transform |
PointColor
Point color
Declaration
public Color PointColor
Field Value
Type | Description |
---|---|
Color |
PointSize
Point size
Declaration
public float PointSize
Field Value
Type | Description |
---|---|
System.Single |
PointType
Declaration
public PrimitiveType PointType
Field Value
Type | Description |
---|---|
PrimitiveType |
Position
Position of point in space
Declaration
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
Methods
Destroy()
Destroy and remove point
Declaration
public override void Destroy()
Overrides
Draw()
Draw point
Declaration
public override void Draw()
Overrides
SetColor(Color)
Declaration
public void SetColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
SetParent(GameObject)
Declaration
public void SetParent(GameObject parent)
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent |
SetSize(Single)
Declaration
public void SetSize(float size)
Parameters
Type | Name | Description |
---|---|---|
System.Single | size |