Pular para o conteúdo
AstraDOCS

Astra.Components.AimConstraint

Astra atual · C# · 06 out. 2026Referência de assinaturas

Aim Constraint: Restrição de mundo com uma fonte. Família Lógica · Restrições.

Namespace: Astra.Components · Assembly: Astra.Scripting · Tipo: Struct

readonly struct Astra.Components.AimConstraint

Aim Constraint: Restrição de mundo com uma fonte. Família Lógica · Restrições.

Referência estudada: https://docs.unity3d.com/6000.0/Documentation/Manual/class-AimConstraint.html

Interfaces: Astra.Components.IComponentFacade<Astra.Components.AimConstraint>.

Consulte também Aim Constraint para propriedades, valores iniciais, requisitos e edição em Play.

Membro Categoria
.ctor Method
Remove Method
Wrap Method
AimAxis Property
AxisX Property
AxisY Property
AxisZ Property
Component Property
Enabled Property
InstanceId Property
IsAlive Property
Object Property
Offset Property
Target Property
TypeId Property
UpAxis Property
Weight Property

.ctor

public AimConstraint(Astra.Component component)
Parâmetro Tipo Contrato
component Astra.Component

Remove

public void Remove()

Remove a instância pelo ciclo nativo; dependências e ownership podem recusar.

Wrap

public static Astra.Components.AimConstraint Wrap(Astra.Component component)
Parâmetro Tipo Contrato
component Astra.Component

AimAxis

public Astra.Components.AimConstraint.AimAxisOption AimAxis { get; set; }

Eixo de mira

AxisX

public bool AxisX { get; set; }

Aplicar X

AxisY

public bool AxisY { get; set; }

Aplicar Y

AxisZ

public bool AxisZ { get; set; }

Aplicar Z

Component

public Astra.Component Component { get; }

Enabled

public bool Enabled { get; set; }

Ativo

InstanceId

public ulong InstanceId { get; }

IsAlive

public bool IsAlive { get; }

Object

public Astra.GameObject Object { get; }

Offset

public System.Numerics.Vector3 Offset { get; set; }

Deslocamento

Target

public Astra.ObjectReference Target { get; set; }

Fonte

TypeId

public static string TypeId { get; }

UpAxis

public Astra.Components.AimConstraint.UpAxisOption UpAxis { get; set; }

Vertical de mundo

Weight

public float Weight { get; set; }

Peso

Faixa válida: 0 a 1.