MeshifAI API Reference
Core API
Meshifai.GenerateModel
Meshifai.GenerateModel
The primary method for generating 3D models from text descriptions.
Parameters
prompt
string
Text description of the model to generate
onComplete
Action<GameObject>
Callback when generation completes successfully
onError
Action<string>
(Optional) Callback when an error occurs
onStatus
Action<string, float>
(Optional) Callback for status updates (message and progress 0-1)
variance
float
(Optional) Controls randomness/diversity of generation (0-1)
applyDefaultMaterial
bool
(Optional) Whether to apply a default material
Returns
object
: A handle that can be used to cancel the generation
Example
Meshifai.CancelGeneration
Meshifai.CancelGeneration
Cancels an in-progress model generation.
Parameters
handle
object
The handle returned by GenerateModel
Example
Meshifai.CloneModel
Meshifai.CloneModel
Creates a copy of an existing MeshifAI-generated model, preserving all metadata.
Parameters
originalModel
GameObject
The original model to copy
Returns
GameObject
: A new copy of the model with all generation data preserved
Example
ModelGenerationData Component
Each generated model has a ModelGenerationData
component attached that contains information about how it was created.
Properties
Prompt
string
The text description used to generate the model
Variance
float
The variance value used during generation
GenerationTime
DateTime
When the model was generated
Example
Example
Need Support? Feel free to reach out to us over hello@0xretro.dev
or twitter on @0xretrodev
Last updated