Runtime Usage
You can also expose Sloyd's AI prompting and editing in playmode and have players of your game or application create with Sloyd.
Creating a Sloyd Object with a Text Prompt
Call SloydSceneObject.Create() to request creating a 3D model. The method has two parameters:
Required string
promptOptional SloydClientAPI.PromptModifier
modifier:If you want to get an AI textured model, pass
SloydClientAPI.PromptModifier.Texturing.For recognition coloring instructions in your prompt by AI, pass
SloydClientAPI.PromptModifier.ReColoring.If you skip
modifierargument or passSloydClientAPI.PromptModifier.None, a 3D model will be painted with its default palette colors.
SloydSceneObject sceneObject = await SloydSceneObject.Create(textPrompt, SloydClientAPI.PromptModifier.Texturing);Editing a Sloyd Object with a Text Promt
SloydSceneObject is a MonoBehaviour component attached to each spawned model. Call SloydSceneObject.Edit() to request editing a spawned 3D model with another prompt.
await sceneObject.Edit(textPrompt);Last updated