robot_2Generated
code_blocksInput

Description

The GameObjectFlags.Bone field is a member of the GameObjectFlags enumeration in the Sandbox namespace. This flag indicates that the game object is automatically created as a bone, which is typically driven by animation. It is used to identify objects that are part of a skeletal structure within a game, allowing them to be manipulated by animations.

Usage

Use the GameObjectFlags.Bone flag when you need to specify that a game object is a bone within a skeletal animation system. This flag is particularly useful in scenarios where you are dealing with character models or any other animated structures that require bone manipulation.

Example

// Example of using GameObjectFlags.Bone

GameObject myBoneObject = new GameObject();
myBoneObject.Flags |= GameObjectFlags.Bone;

// This sets the object as a bone, allowing it to be driven by animations.