UniformAttributeclass

When applied to a Vector2/3/4 property, adds a toggle in the inspector to edit every component as a single uniform value. Set `Sandbox.UniformAttribute.Default` to start in uniform mode until the user toggles it.

objectAttributeUniformAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public sealed class Sandbox.UniformAttribute : System.Attribute

Constructors1

Showing 1 constructors

Properties1

Showing 1 properties

public bool Sandbox.UniformAttribute.Default { get; set; }PUBLICGETSET

Whether uniform editing is on by default, before the user has toggled it.

Returns:bool

On this page