The CloneConfig struct in the Sandbox
namespace is used as a low-level input for cloning a GameObject. It provides configuration options for the cloning process, such as initial state, transformation, and parent object.
The CloneConfig struct in the Sandbox
namespace is used as a low-level input for cloning a GameObject. It provides configuration options for the cloning process, such as initial state, transformation, and parent object.
Member Name | Summary |
---|---|
StartEnabled | Indicates whether the cloned object should be enabled at the start. |
Transform | The transformation to apply to the cloned object. |
Name | The name to assign to the cloned object. |
Parent | The parent GameObject to which the cloned object will be attached. |
PrefabVariables | A dictionary of variables to override in the prefab during cloning. |