Skip to main content

SpatialObject

Complete API reference for SpatialObject, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Object

Component: no


public class SpatialObject

Constructors

SignatureDescription
SpatialObject(GameObject)Executes SpatialObject and returns after the underlying engine call finishes.
SpatialObject(Engine)Executes SpatialObject and returns after the underlying engine call finishes.
SpatialObject()Executes SpatialObject and returns after the underlying engine call finishes.
SpatialObject(SpatialObject)Creates a new instance of SpatialObject.
SpatialObject(String)Creates a new instance of SpatialObject.
SpatialObject(String, SpatialObject)Creates a new instance of SpatialObject.

Attributes

NameTypeDescription
instanceWeakReference<GameObject>Represents the instance value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
allowAnimationsbooleanget/setVirtual attribute exposed by isAllowAnimations. Access it like a field to read or write the underlying value.
childCountintgetVirtual attribute exposed by getChildCount. Access it like a field to read or write the underlying value.
childListList<SpatialObject>getVirtual attribute exposed by getChildList. Access it like a field to read or write the underlying value.
componentsListList<Component>getVirtual attribute exposed by getComponentsList. Access it like a field to read or write the underlying value.
dontDestroyOnLoadbooleanget/setVirtual attribute exposed by isDontDestroyOnLoad. Access it like a field to read or write the underlying value.
enabledbooleanget/setVirtual attribute exposed by isEnabled. Access it like a field to read or write the underlying value.
gUIDGUIDgetVirtual attribute exposed by getGUID. Access it like a field to read or write the underlying value.
globalMatrixfloat[]getVirtual attribute exposed by getGlobalMatrix. Access it like a field to read or write the underlying value.
globalPositionVector3get/setVirtual attribute exposed by getGlobalPosition. Access it like a field to read or write the underlying value.
globalRotationQuaternionget/setVirtual attribute exposed by getGlobalRotation. Access it like a field to read or write the underlying value.
globalScaleVector3get/setVirtual attribute exposed by getGlobalScale. Access it like a field to read or write the underlying value.
localMatrixfloat[]getVirtual attribute exposed by getLocalMatrix. Access it like a field to read or write the underlying value.
mainParentSpatialObjectgetVirtual attribute exposed by getMainParent. Access it like a field to read or write the underlying value.
metaIDStringget/setVirtual attribute exposed by getMetaID. Access it like a field to read or write the underlying value.
nameStringget/setVirtual attribute exposed by getName. Access it like a field to read or write the underlying value.
parentSpatialObjectget/setVirtual attribute exposed by getParent. Access it like a field to read or write the underlying value.
positionVector3get/setVirtual attribute exposed by getPosition. Access it like a field to read or write the underlying value.
rotationQuaternionget/setVirtual attribute exposed by getRotation. Access it like a field to read or write the underlying value.
scaleVector3get/setVirtual attribute exposed by getScale. Access it like a field to read or write the underlying value.
staticbooleanget/setVirtual attribute exposed by isStatic. Access it like a field to read or write the underlying value.
tagStringget/setVirtual attribute exposed by getTag. Access it like a field to read or write the underlying value.
transformTransformgetVirtual attribute exposed by getTransform. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setNameOH(JAVARuntime.OHString)voidSets or updates the name oh.
compareName(String)booleanCompares this instance with another for equality/order.
duplicate()SpatialObjectExecutes duplicate and returns after the underlying engine call finishes.
destroy()voidExecutes destroy and returns after the underlying engine call finishes.
sendEvent(String)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEvent(String, int)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEvent(String, float)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEvent(String, String)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEvent(String, boolean)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEvent(String, Object...)voidExecutes sendEvent and returns after the underlying engine call finishes.
sendEventToHierarchy(String)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
sendEventToHierarchy(String, int)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
sendEventToHierarchy(String, float)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
sendEventToHierarchy(String, String)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
sendEventToHierarchy(String, boolean)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
sendEventToHierarchy(String, Object...)voidExecutes sendEventToHierarchy and returns after the underlying engine call finishes.
callFunction(String)voidPerforms the callFunction operation using the provided parameters (name).
callFunction(String, int)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, float)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, String)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, boolean)voidPerforms the callFunction operation using the provided parameters (name, args).
callFunction(String, Object...)voidPerforms the callFunction operation using the provided parameters (name, args).
instantiate(ObjectFile)SpatialObjectPerforms the instantiate operation using the provided parameters (pFile).
instantiate(ObjectFile, Vector3)SpatialObjectPerforms the instantiate operation using the provided parameters (pFile, position).
instantiate(ObjectFile, Vector3, Quaternion)SpatialObjectPerforms the instantiate operation using the provided parameters (pFile, position, rotation).
instantiate(ObjectFile, Vector3, Quaternion, Vector3)SpatialObjectPerforms the instantiate operation using the provided parameters (pFile, position, rotation, scale).
instantiateHasChild(ObjectFile)SpatialObjectPerforms the instantiateHasChild operation using the provided parameters (pFile).
instantiateHasChild(ObjectFile, SpatialObject)SpatialObjectPerforms the instantiateHasChild operation using the provided parameters (pFile, parent).
instantiateAsChild(ObjectFile)SpatialObjectPerforms the instantiateAsChild operation using the provided parameters (pFile).
instantiateAsChild(ObjectFile, SpatialObject)SpatialObjectPerforms the instantiateAsChild operation using the provided parameters (pFile, parent).
findComponent(String)<T extends Component> TPerforms the findComponent operation using the provided parameters (tittle).
findComponents(String)List&lt;Component&gt;Performs the findComponents operation using the provided parameters (tittle).
findComponent(Class)<T extends Component> TPerforms the findComponent operation using the provided parameters (classReference).
findComponents(Class)List&lt;Component&gt;Performs the findComponents operation using the provided parameters (classReference).
findComponentInChildren(String)<T extends Component> TPerforms the findComponentInChildren operation using the provided parameters (tittle).
findComponentInChildren(Class)<T extends Component> TPerforms the findComponentInChildren operation using the provided parameters (classReference).
findComponentInParent(String)<T extends Component> TExecutes findComponentInParent and returns after the underlying engine call finishes.
findComponentInParent(Class)<T extends Component> TExecutes findComponentInParent and returns after the underlying engine call finishes.
removeComponent(Component)voidRemoves component from the collection.
addComponent(Component)voidAdds component to the collection.
addComponent(Component, Class)voidAdds component to the collection.
addComponent(Component)voidAdds component to the collection.
removeParent()voidRemoves parent from the collection.
findChildObject(String)SpatialObjectPerforms the findChildObject operation using the provided parameters (name).
findChildObject(JAVARuntime.OHString)SpatialObjectPerforms the findChildObject operation using the provided parameters (name).
getChildAt(int)SpatialObjectReturns the current child at.
getChildIndex(SpatialObject)intReturns the current child index.
swapChildrenPosition(SpatialObject, SpatialObject)voidPerforms the swapChildrenPosition operation using the provided parameters (a, b).
componentCount()intExecutes componentCount and returns after the underlying engine call finishes.
getComponentAt(int)ComponentReturns the current component at.
getComponentsAt(int)ComponentReturns the current components at.
componentAt(int)ComponentPerforms the componentAt operation using the provided parameters (idx).
distance(SpatialObject)floatPerforms the distance operation using the provided parameters (other).
distance(Transform)floatPerforms the distance operation using the provided parameters (other).
distance(Vector3)floatPerforms the distance operation using the provided parameters (other).
sqrtDistance(SpatialObject)floatPerforms the sqrtDistance operation using the provided parameters (other).
sqrtDistance(Transform)floatPerforms the sqrtDistance operation using the provided parameters (other).
sqrtDistance(Vector3)floatPerforms the sqrtDistance operation using the provided parameters (other).
setPosition(float, float, float)voidSets or updates the position.
setPositionX(float)voidSets or updates the position x.
setPositionY(float)voidSets or updates the position y.
setPositionZ(float)voidSets or updates the position z.
setRotation(float, float, float)voidSets or updates the rotation.
setRotation(float, float, float, float)voidSets or updates the rotation.
setScale(float, float, float)voidSets or updates the scale.
setScale(float)voidSets or updates the scale.
getGlobalPosition(Vector3)Vector3Returns the current global position.
getGlobalRotation(Quaternion)QuaternionReturns the current global rotation.
getGlobalScale(Vector3)Vector3Returns the current global scale.
translate(float, float, float)voidTransforms or moves the object accordingly.
move(float, float, float)voidTransforms or moves the object accordingly.
rotate(float, float, float)voidTransforms or moves the object accordingly.
translateInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
moveInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
rotateInSeconds(float, float, float)voidTransforms or moves in seconds accordingly.
translateInSeconds(int, int, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, int, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, float, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(int, float, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, int, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, int, float)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
translateInSeconds(float, float, int)voidExecutes translateInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, int, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, int, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, float, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(int, float, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, int, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, int, float)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
moveInSeconds(float, float, int)voidExecutes moveInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, int, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, int, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, float, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(int, float, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, int, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, int, float)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
rotateInSeconds(float, float, int)voidExecutes rotateInSeconds and returns after the underlying engine call finishes.
lookTo(SpatialObject)voidExecutes lookTo and returns after the underlying engine call finishes.
lookTo(Vector3)voidPerforms the lookTo operation using the provided parameters (position).
lookTo(float, float, float)voidPerforms the lookTo operation using the provided parameters (x, y, z).
lookTo(SpatialObject, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookTo(Vector3, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookTo(float, float, float, boolean, boolean)voidExecutes lookTo and returns after the underlying engine call finishes.
lookToIgnoreY(SpatialObject)voidPerforms the lookToIgnoreY operation using the provided parameters (object).
lookToIgnoreY(Vector3)voidPerforms the lookToIgnoreY operation using the provided parameters (position).
teleportTo(SpatialObject)voidPerforms the teleportTo operation using the provided parameters (object).
teleportTo(Vector3)voidPerforms the teleportTo operation using the provided parameters (position).
smoothLookTo(SpatialObject, float)voidPerforms the smoothLookTo operation using the provided parameters (other, lerpSpeed).
smoothLookTo(Vector3, float)voidPerforms the smoothLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookTo(SpatialObject, float)voidPerforms the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookTo(Vector3, float)voidPerforms the lerpLookTo operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(SpatialObject, float)voidPerforms the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
lerpLookToIgnoreY(Vector3, float)voidPerforms the lerpLookToIgnoreY operation using the provided parameters (other, lerpSpeed).
transformPoint(Vector3)Vector3Performs the transformPoint operation using the provided parameters (vector3).
transformPoint(Vector3, Vector3)voidPerforms the transformPoint operation using the provided parameters (vector3, out).
inverseTransformPoint(Vector3)Vector3Performs the inverseTransformPoint operation using the provided parameters (vector3).
inverseTransformPoint(Vector3, Vector3)voidPerforms the inverseTransformPoint operation using the provided parameters (vector3, out).
transformDirection(Vector3)Vector3Performs the transformDirection operation using the provided parameters (vector3).
transformDirection(Vector3, Vector3)voidPerforms the transformDirection operation using the provided parameters (vector3, out).
inverseTransformDirection(Vector3)Vector3Performs the inverseTransformDirection operation using the provided parameters (vector3).
inverseTransformDirection(Vector3, Vector3)voidPerforms the inverseTransformDirection operation using the provided parameters (vector3, out).
forward()Vector3Executes forward and returns after the underlying engine call finishes.
back()Vector3Executes back and returns after the underlying engine call finishes.
right()Vector3Executes right and returns after the underlying engine call finishes.
left()Vector3Executes left and returns after the underlying engine call finishes.
up()Vector3Executes up and returns after the underlying engine call finishes.
down()Vector3Executes down and returns after the underlying engine call finishes.
forward(Vector3)Vector3Performs the forward operation using the provided parameters (out).
back(Vector3)Vector3Performs the back operation using the provided parameters (out).
right(Vector3)Vector3Performs the right operation using the provided parameters (out).
left(Vector3)Vector3Performs the left operation using the provided parameters (out).
up(Vector3)Vector3Performs the up operation using the provided parameters (out).
down(Vector3)Vector3Performs the down operation using the provided parameters (out).
getState()intReturns the current state.
setState(int)voidSets or updates the state.
getGlobalMatrix(float[])float[]Returns the current global matrix.
getLocalMatrix(float[])float[]Returns the current local matrix.
mulGlobalVector3(Vector3)Vector3Performs the mulGlobalVector3 operation using the provided parameters (vector3).
mulLocalVector3(Vector3)Vector3Performs the mulLocalVector3 operation using the provided parameters (vector3).
recalculateMatrices()voidExecutes recalculateMatrices and returns after the underlying engine call finishes.
toJson()StringExecutes toJson and returns after the underlying engine call finishes.
exists()booleanExecutes exists and returns after the underlying engine call finishes.
compareTag(String)booleanCompares this instance with another for equality/order.
validate()booleanExecutes validate and returns after the underlying engine call finishes.

Static Methods

SignatureReturnsDescription
inspectorController()ClassInspectorEntryExecutes inspectorController and returns after the underlying engine call finishes.
loadFile(ObjectFile)SpatialObjectLoads file into the object.