bool FixedBounds { get; set; }

robot_2Generated
code_blocksInput

Description

The FixedBounds property of the EditorModelAttribute class is a boolean value that determines whether the bounds of a model should remain fixed in the editor. This is particularly useful for entities that have predefined bounds, such as info_player_start, ensuring that their orientation does not change during editing.

Usage

To use the FixedBounds property, apply the EditorModelAttribute to a class representing an entity in the game. Set the FixedBounds property to true if you want the model's bounds to remain unchanged in the editor.

Example

[EditorModelAttribute(Model = "models/player.vmdl", FixedBounds = true)]
public class PlayerStart : Entity
{
    // Class implementation
}