Skip to main content

GizmoObject

class GizmoObject

Class responsible for creating and modifying GizmoObject and GizmoTransform elements.


public class GizmoObject extends GizmoTransform

— Constructors (5) —

ConstructorDescription
GizmoObject()Creates a new GizmoObject.
GizmoObject(Vertex vertex)Creates a new GizmoObject with its current vertex defined to be "vertex" argument.
GizmoObject(Vertex vertex, Vector3 position)Creates a new GizmoObject with its current vertex defined to be "vertex" argument and position to be "position" argument.
GizmoObject(Vertex vertex, Vector3 position, Quaternion rotation)Creates a new GizmoObject with its current vertex defined to be "vertex" argument, position to be "position" argument and rotation to be "rotation" argument.
GizmoObject(Vertex vertex, Vector3 position, Quaternion rotation, Vector3 scale)Creates a new GizmoObject with its current vertex defined to be "vertex" argument, position to be "position" argument, rotation to be "rotation" argument and scale to be "scale" argument.

— Methods (19) —

NameDescription
Vertex getVertex()Returns the current vertex of the GizmoObject.
void setVertex(Vertex vertex)Sets the current vertex of the GizmoObject to be "vertex" argument.
int getWireFrameWidth()Returns the current width of the GizmoObject's WireFrame(line-only rendering mode) rendering mode.
void setWireFrameWidth(int wireFrameWidth)Sets the current width of the WireFrame(line-only rendering mode) rendering mode of the GizmoObject to be "wireFrameWidth" argument.
Color getColor()Returns the current color of the GizmoObject.
void setColor(Color color)Sets the current color of the GizmoObject to be "color" argument.
[Texture] getTexture()Returns the current texture of the GizmoObject.
void setTexture([Texture] texture)Sets the current texture of the GizmoObject to be "texture" argument.
boolean isDualFaceRender()Returns true if both sides of the GizmoObject are being rendered, false if not.
void setDualFaceRender(boolean dualFaceRender)Defines whether or not both sides of the GizmoObject will be rendered to be "dualFaceRender" argument.
[RenderMode] getRenderMode()Returns the current rendering mode("Triangles", "WireFrame", "Both" or "SimpleWireFrame") of the GizmoObject.
void setRenderMode([RenderMode] renderMode)Sets the current rendering mode("Triangles", "WireFrame", "Both" or "SimpleWireFrame") of the GizmoObject to be "renderMode" argument.
Object getUserPointer()Returns an Object.
void setUserPointer(Object userPointer)Defines an Object to be "userPointer" argument.
boolean isEnableTransparency()Returns true if GizmoObject transparency is enabled, false if not.
void setEnableTransparency(boolean enableTransparency)Defines whether the GizmoObject transparency will be enabled or disabled to be "enableTransparency" argument.
boolean isScaleBasedCamera()Returns true if the GizmoObject scale is based on the Camera scale, false if not.
void setScaleBasedCamera(boolean scaleBasedCamera)Defines whether the GizmoObject will be scaled based on the scale of the Camera or not to be "scaleBasedCamera" argument.
void randomizeColor()Sets a new random color for the GizmoObject.