|
Gizmos Plus
|
Base class for drawing gizmos. More...
Public Types | |
| enum | TextAnchor { Left, Center, Right } |
Static Public Member Functions | |
| static void | Cross (Vector3 position, float size) |
| Creates three intersecting lines on the X,Y,Z axis crossing at a point. More... | |
| static void | WireOcto (Vector3 position, float size) |
| Creates a wireframe octahedron at a point in space. More... | |
| static void | Octo (Vector3 position, float size) |
| Creates a solid octahedron at a point in space. More... | |
| static void | Arrow (Vector3 origin, Vector3 dirMagnitude, float headSize=0.1f, bool absHeadSize=false) |
| Creates an arrow originating from a point and pointing in a certian direction with a certain length. More... | |
| static void | Square (Vector3 origin, Vector3 normalSize, bool crossed=false) |
| Construct a square in space More... | |
| static void | Rectangle (Vector3 origin, Vector3 normal, float width, float height, bool crossed=false) |
| Construct a rectangle in space More... | |
| static void | Circle (Vector3 origin, Vector3 normalRadius, int segments=32) |
| Construct a circle in space More... | |
| static void | WireCylinder (Vector3 origin, float radius, float height, int segments=16) |
| Construct a cylinder in space More... | |
| static void | Lines (Vector3[] points) |
| Draw a series of connected line segments. More... | |
| static void | Polygon (Vector3[] points) |
| Draw a shaded convex polygon More... | |
| static void | Text (Vector3 origin, string text, TextAnchor anchor=TextAnchor.Center) |
| Draw text in space More... | |
Base class for drawing gizmos.
|
inlinestatic |
Creates an arrow originating from a point and pointing in a certian direction with a certain length.
| origin | The point the arrow's base is at. |
| dirMagnitude | A vector representing both the direction and length of the arrow. |
| headSize | Arrowhead size, as a fraction of the arrow total size, or as an absolute size if absHeadSize is set to true. Optional. Default 0.1. |
| absHeadSize | If set to true, then headSize is treated as an absolute size, if false then headSize is a fraction of the toal arrow size. |
|
inlinestatic |
Construct a circle in space
| origin | The center point of the circle |
| normalRadius | The normal and radius of the circle, the radius of the circle will be equivalent to this vector's magnitude. |
| segments | Optional, the number of segments to construct the circle out of. Defaults to 32. |
|
inlinestatic |
Creates three intersecting lines on the X,Y,Z axis crossing at a point.
| position | Location in the game world to place the cross. |
| size | Size of the cross. |
|
inlinestatic |
Draw a series of connected line segments.
| points | The points to draw the segments through |
|
inlinestatic |
Creates a solid octahedron at a point in space.
| position | Location in the game world to place the octahedron. |
| size | Size of the octahedron. |
|
inlinestatic |
Draw a shaded convex polygon
| points | The points of the polygon |
|
inlinestatic |
Construct a rectangle in space
| origin | The center point of the rectangle |
| normal | The normal of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
| crossed | Optional, if true a cross will be drawn through opposite borders of the rectangle. |
|
inlinestatic |
Construct a square in space
| origin | The center point of the square |
| normalSize | The normal and size of the square, each side of the square will have a length equivalent to this vector's magnitude. |
| crossed | Optional, if true a cross will be drawn through opposite borders of the square. |
|
inlinestatic |
Draw text in space
| origin | The point to draw the text from |
| text | The text to draw |
| anchor | How to align the text, default center |
|
inlinestatic |
Construct a cylinder in space
| origin | The center point of the cylinder |
| radius | The radius of the cylinder. |
| height | The height of the cylinder. |
| segments | Optional, the number of segments to construct the cylinder out of. Defaults to 16. |
|
inlinestatic |
Creates a wireframe octahedron at a point in space.
| position | Location in the game world to place the octahedron. |
| size | Size of the octahedron. |
1.8.13