This class allows you to make generated habitats using the Anything World habitat engine.
void
MakeHabitat
(string habitatName, bool createCreatures)
void
MakeHabitat
(string habitatName)
void AnythingWorld.Habitat.AnythingHabitat.MakeHabitat (string habitatName)
void AnythingWorld.Habitat.AnythingHabitat.MakeHabitat (string habitatName, bool createCreatures)
AnythingHabitat AnythingWorld.Habitat.AnythingHabitat.Instance
habitatName
createCreatures
This class allows you to access the Anything World creation engine to make objects in runtime using code.
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)
List< AWObj > AnythingWorld.AnythingCreator.MakeManyObjects (string objName, int quantity, bool hasBehaviour = true)
AWObj AnythingWorld.AnythingCreator.MakeObject(string objName, bool hasBehaviour = true, bool hasCollider = true)
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false)
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Transform transform, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false )
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, bool hasBehaviour = true, bool hasCollider = true)
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, bool hasBehaviour = true, bool hasCollider = true)
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, bool hasBehaviour = true, bool hasCollider = true)
AWObj AnythingWorld.AnythingCreator.MakeObject (string objName, Vector3 objectPos, Quaternion objectRot, Vector3 objectScale, Transform parentTransform, bool hasBehaviour = true, bool hasCollider = true, bool positionGlobally = false)
AnythingCreator AnythingWorld.AnythingCreator.Instance
Dictionary<string, List > AnythingWorld.AnythingCreator.MadeThings
Parameters
Type
Definition
objName
string
Name of object to be requested from server.
objectPos
Vector3
Position in scene to be applied requested object.
objectRot
Quaternion
Local rotation to be applied to requested object.
objectScale
Vector3
Local scale to be applied to request object.
parentTransform
Transform
Transform that new object will be parented to.
transfrom
Transfrom
transform to be applied to object after creation
hasBehaviour
bool
Will object receive default behaviour & animations.
hasCollider
bool
Will object receive automatically generated collider around model.
positionGlobally
bool
Will object be applied globally? (Default: false, locally)
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.
This module allows developers to access the Anything World TTS (Text-to-speech) engine.
delegate void
AWSpeechHandler (string testResponse)
delegate void
AWSpeechDoneHandler (string testResponse)
void
StartListening
(
AWSpeechHandler
responseCallback,
AWSpeechDoneHandler
doneCallback)
void
StartListening
(
AWSpeechDoneHandler
doneCallback)
void
StopListening
()
void
Speak
(string thingToSay, string voiceName="none")
void
ListenForInterval
(float time,
AWSpeechDoneHandler
doneCallBack)
void
ListenForInterval
(float time,
AWSpeechHandler
responseCallBack, AWSpeechDoneHandler doneCallBack)
delegate void AnythingWorld.Speech.AnythingSpeech.AWSpeechDoneHandler (string testResponse)
delegate void AnythingWorld.Speech.AnythingSpeech.AWSpeechHandler (string testResponse)
void AnythingWorld.Speech.AnythingSpeech.ListenForInterval (float time, AWSpeechDoneHandler doneCallBack)
Listen for a specified amount of time and receive a string to a callback.
void AnythingWorld.Speech.AnythingSpeech.ListenForInterval (float time, AWSpeechHandler responseCallBack, AWSpeechDoneHandler doneCallBack)
void AnythingWorld.Speech.AnythingSpeech.Speak (string thingToSay, string voiceName = "none")
Use speech synthesis to say input string.
void AnythingWorld.Speech.AnythingSpeech.StartListening (AWSpeechDoneHandler doneCallback)
void AnythingWorld.Speech.AnythingSpeech.StartListening (AWSpeechHandler responseCallback, AWSpeechDoneHandler doneCallback)
Activates voice input and starts listening to the user.
void AnythingWorld.Speech.AnythingSpeech.StopListening()
Deactivate voice input and stop listening.
AnythingSpeech AnythingWorld.Speech.AnythingSpeech.Instance
time
Time in seconds to listen.
responseCallBack
Callback handling any detected changes to the input string during listening.
doneCallBack
Callback handling the final detected string once listening completed
thingToSay
String to vocalise
voiceName
Name of voice