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 systems. 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-based transformations.

Example

// Example of using GameObjectFlags.Bone
GameObject myBoneObject = new GameObject();
myBoneObject.Flags |= GameObjectFlags.Bone;

// Check if the object is a bone
if ((myBoneObject.Flags & GameObjectFlags.Bone) != 0)
{
    // Perform operations specific to bone objects
    // For example, apply animation transformations
}