Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Set up your Unity Project









using AnythingWorld.Habitat;
public class MakeHabitat: MonoBehaviour
{
public string MyHabitat;
void Start()
{
AnythingHabitat habitatCreator = AnythingHabitat.Instance;
habitatCreator.MakeHabitat(MyHabitat);
}
}Sometimes luck just isn't on your side. Luckily, we are. Here are a few troubleshooting tips if you're seeing compiler or linker errors while trying to build Anything World.


https://api.anything.world/anything?key=<API_KEY>&name=<NAME>https://api.anything.world/anything?key=<API_KEY>&name=bird{
"_id": "5e958b911c9d440000f9771d",
"name": "dog",
"creature": "dog",
"group": "mammals",
"type": "quadruped",
"behaviour": "walk",
"pet": true,
"detail": "medium",
"model": {
"parts": {
"body": "https://assets.anything.world/dog/body.obj?Expires=1629890114&KeyName=models&Signature=phbXMpLsJBzNDTXQAdJW7phnvSg",
"head": "https://assets.anything.world/dog/head.obj?Expires=1629890114&KeyName=models&Signature=h6t0BWNXhCoB3DXP0-eNnKULCJQ",
"leg_front_left_bot": "https://assets.anything.world/dog/leg_front_left_bot.obj?Expires=1629890114&KeyName=models&Signature=K9W3wfPT9WhpCH6jZXRRnVMN7G4",
"leg_front_left_top": "https://assets.anything.world/dog/leg_front_left_top.obj?Expires=1629890114&KeyName=models&Signature=AfTkg0KIlEWw-CFtJM0yLcrVVCw",
"leg_front_right_bot": "https://assets.anything.world/dog/leg_front_right_bot.obj?Expires=1629890114&KeyName=models&Signature=TcYVhFISHsV1FWtu0OVdSe0rYQU",
"leg_front_right_top": "https://assets.anything.world/dog/leg_front_right_top.obj?Expires=1629890114&KeyName=models&Signature=GP8CokHpOUM93kbzv9rhWWWrAxY",
"leg_hind_left_bot": "https://assets.anything.world/dog/leg_hind_left_bot.obj?Expires=1629890114&KeyName=models&Signature=Xit_bZ8J7IiVY8EqO4cQLw-7twU",
"leg_hind_left_top": "https://assets.anything.world/dog/leg_hind_left_top.obj?Expires=1629890114&KeyName=models&Signature=2PASF7b7Tj-JPARj80hPAzuxohM",
"leg_hind_right_bot": "https://assets.anything.world/dog/leg_hind_right_bot.obj?Expires=1629890114&KeyName=models&Signature=OqWkuXy9sqiOcpqd9vGBb8PNAOo",
"leg_hind_right_top": "https://assets.anything.world/dog/leg_hind_right_top.obj?Expires=1629890114&KeyName=models&Signature=c7ZU1jQz-GyamcYyjVYlaPfjpcM",
"tail": "https://assets.anything.world/dog/tail.obj?Expires=1629890114&KeyName=models&Signature=CBsGk-k-zL096jbaCdip7Rr0tt8"
},
"other": {
"material": "https://assets.anything.world/dog/dog.mtl?Expires=1629890114&KeyName=models&Signature=y7vPL9ZbY0QJwLZuVGkThNBu8x0",
"model": "https://assets.anything.world/dog/dog.obj?Expires=1629890114&KeyName=models&Signature=qnIGLYo3mXN2NnVMhuWOBMxxKOU",
"texture": [
"https://assets.anything.world/dog/basecolor.png?Expires=1629890114&KeyName=models&Signature=oNIXgYIHMletKl009yrow_zkAHk"
],
"reference": "https://assets.anything.world/dog/reference.png?Expires=1629890114&KeyName=models&Signature=EF1MrK08ZLGpguI_8r-kCwysWcM"
}
},
"author": "Poly by Google",
"source": "AW-API",
"forest": false,
"beach": false,
"city": true,
"desert": false,
"farm": false,
"sea": false,
"icescape": false,
"jungle": false,
"lake": false,
"pond": false,
"river": false,
"swamp": false,
"grass": false,
"rural": true,
"urban": false,
"garden": true,
"scale": {
"height": "1.2m"
},
"source_endpoint": "aw_api"
}"no model found"{
// Response
}{
// Response
}{
// Response
}{
// Response
}{
// Response
}{
// Response
}












using AnythingWorld.Speech;
public class SpeechController: MonoBehaviour
{
void Start()
{
AnythingSpeech speech = AnythingSpeech.Instance;
speech.Speak("Hello Anything World");
}
}



This class allows you to access the Anything World creation engine to make objects in runtime using code.



using AnythingWorld;
public class MakeSingleObject : MonoBehaviour
{
public string objectToName = "cat";
void Start()
{
AnythingCreator.Instance.MakeObject("cat");
}
}public class MakeObjectQuaternion : MonoBehaviour
{
public string objectToMake = "dog";
public Vector3 vectorPosition = new Vector3(2, 1, 2);
public Quaternion quaternionRotation = Quaternion.identity;
private void Start()
{
AnythingCreator.Instance.MakeObject(objectToMake, vectorPosition, quaternionRotation);
}
}using AnythingWorld;
public class MakeObjectFullCustom : MonoBehaviour
{
public string objectToMake;
public Vector3 objectPos;
public Quaternion objectRotation;
public Vector3 objectScale;
public Transform parentTransform;
void Start()
{
AnythingCreator.Instance.MakeObject(objectToMake, objectPos, objectRotation, objectScale, parentTransform);
}
}















