# Make

#### Declaration

{% code overflow="wrap" %}

```csharp
public static GameObject Make(string name)
```

{% endcode %}

<pre class="language-csharp"><code class="lang-csharp">public static GameObject Make(string name, params <a data-footnote-ref href="#user-content-fn-1">RequestParam</a>[] parameters
</code></pre>

#### Parameters

<table data-header-hidden><thead><tr><th width="142.5"></th><th></th></tr></thead><tbody><tr><td><strong>name</strong></td><td>Name of model to request from database with or without GUID qualified. (eg. fox, cat#0001)</td></tr><tr><td><strong>parameters</strong></td><td>Optional list of request parameters (see: RequestParameter) to apply to this request, override default parameters. </td></tr></tbody></table>

#### Description

This method allows users to request an object from the Anything World database and have it instantiated in the scene according to the parameters they pass in. If no parameters are passed in the default parameters will be used.

Users can provide RequestParams, that can be created using the RequestParameter class.&#x20;

#### Example

```csharp
//Creates a cat with some parameters.
public class MakeACreature : MonoBehaviour 
{
    public void MakeACat()
    {
    
        AnythingMaker.Make("cat",
            //Will add animation system if available
            RequestParameter.IsAnimated(true),
            //Sets position to zero
            RequestParameter.Position(Vector3.zero),
            //Adds default behaviours from preset
            RequestParameter.SetDefaultBehaviour(),
            //Set callbacks for successful creation.
            RequestParameter.OnSuccessAction(PrintDebugWhenSuccessful),
            //Set callback for failed creation.
            RequestParameter.OnFailAction(PrintDebugWhenFail),
             //Add another example script
            RequestParameter.AddScripts(typeof(UserScriptExample)));
    }
    // This function will be invoked if model creationg process successful
    public void PrintDebugWhenSuccessful()
    {
        Debug.Log("Finished making model!");
    }
    // This function will be invoked if the model creation process fails
    public void PrintDebugWhenFail()
    {
        Debug.Log("Could not finish making model!");
    }
    
}
```

[^1]: [requestparameter](https://anything-world.gitbook.io/anything-world/unity/documentation/anythingworld-api/requestparameter "mention")


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://anything-world.gitbook.io/anything-world/unity/documentation/anythingworld-api/anythingmaker/make.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
