bool StartEnabled

robot_2Generated
code_blocksInput

Description

The StartEnabled field is a boolean value within the CloneConfig struct. It determines whether a 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, you need to 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

// Create a new CloneConfig instance
CloneConfig cloneConfig = new CloneConfig();

// Set StartEnabled to true to ensure the cloned GameObject is active
cloneConfig.StartEnabled = true;

// Use the cloneConfig when cloning a GameObject
GameObject original = new GameObject();
GameObject clone = original.Clone(cloneConfig);

// The clone will be enabled upon creation due to StartEnabled being true