AnythingCreator
This class allows you to access the Anything World creation engine to make objects in runtime using code.
AnythingCreator Class Reference
Public Member Functions
List<
AWObj
>
MakeManyObjects
(string objName, int quantity, bool hasBehaviour=true)
AWObj MakeObject
(string objName, bool hasBehaviour=true, bool hasCollider=true)
AWObj MakeObject
(string objName, Transform parentTransform, bool hasBehaviour=true, bool hasCollider=true, bool positionGlobally=false)
AWObj MakeObject
(string objName, Transform transform, Transform parentTransform, bool hasBehaviour=true, bool hasCollider=true, bool positionGlobally=false)
AWObj MakeObject
(string objName, Vector3 objectPos, bool hasBehaviour=true, bool hasCollider=true)
AWObj MakeObject
(string objName, Vector3 objectPos, Quaternion objectRot, bool hasBehaviour=true, bool hasCollider=true)
AWObj MakeObject
(string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, bool hasBehaviour=true, bool hasCollider=true)
AWObj MakeObject
(string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, Transform parentTransform, bool hasBehaviour=true, bool hasCollider=true, bool positionGlobally=false)
Member Functions
MakeManyObjects()
List< AWObj > AnythingWorld.AnythingCreator.MakeManyObjects (string objName, int quantity, bool hasBehaviour = true)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject(string objName, bool hasBehaviour = true, bool hasCollider = true)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Transform transform, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false )
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, bool hasBehaviour = true, bool hasCollider = true)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, bool hasBehaviour = true, bool hasCollider = true)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, bool hasBehaviour = true, bool hasCollider = true)
MakeObject()
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false)
Property
Instance
AnythingCreator AnythingWorld.AnythingCreator.Instance
MadeThings
Dictionary<string, List > AnythingWorld.AnythingCreator.MadeThings
Parameters
Returns
Reference to AWObj of the object being made. Objects are generated asynchronously, make the status of your object attached to AWObj can be queried using the ObjectMade bool property.
Example
Last updated