Pular para o conteúdo
AstraDOCS

Astra.Components.LookAtConstraint

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

Look At Constraint: Orienta +Z para a fonte com vertical e roll. Família Lógica · Restrições.

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

readonly struct Astra.Components.LookAtConstraint

Look At Constraint: Orienta +Z para a fonte com vertical e roll. Família Lógica · Restrições.

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

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

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

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

.ctor

public LookAtConstraint(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.LookAtConstraint Wrap(Astra.Component component)
Parâmetro Tipo Contrato
component Astra.Component

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; }

Roll

public float Roll { get; set; }

Roll (graus)

Faixa válida: -360 a 360.

Target

public Astra.ObjectReference Target { get; set; }

Fonte

TypeId

public static string TypeId { get; }

UpAxis

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

Vertical de mundo

Weight

public float Weight { get; set; }

Peso

Faixa válida: 0 a 1.