bool StartEnabled

robot_2Generated
code_blocksInput

Description

The StartEnabled field is a boolean value within the CloneConfig struct. It determines whether the cloned GameObject should be enabled upon creation. This field is part of the configuration used when cloning a GameObject in the Sandbox environment.

Usage

To use the StartEnabled field, create an instance of the CloneConfig struct and set the StartEnabled field to true or false depending on whether you want the cloned GameObject to be active immediately after cloning.

Example

// Example of using the StartEnabled field in CloneConfig
CloneConfig cloneConfig = new CloneConfig();
cloneConfig.StartEnabled = true; // The cloned GameObject will be enabled upon creation

GameObject originalObject = new GameObject();
GameObject clonedObject = originalObject.Clone(cloneConfig);

// The clonedObject will be active if StartEnabled is set to true.