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
, where the bounds should not be reoriented or adjusted.
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 the entity's bounds should remain unchanged in the editor.
Example
[EditorModelAttribute(Model = "models/player.vmdl", FixedBounds = true)]
public class PlayerStart : Entity
{
// Entity logic here
}