--- title: "Astra.Components.ParentConstraint" version: snapshot-2026-10-06 engineGeneration: astra-current language: C# status: semantic-reference runtimeVerified: false platformEvidence: [] url: https://astraengine.com.br/pt-br/snapshot-2026-10-06/api/astra-components-parentconstraint/ --- # Astra.Components.ParentConstraint Parent Constraint: Segue posição e rotação da fonte sem herdar escala. Família Lógica · Restrições. **Namespace:** `Astra.Components` · **Assembly:** `Astra.Scripting` · **Tipo:** Struct :::note[Sobre esta referência] Assinaturas extraídas semanticamente com Roslyn/MSBuild. Isso confirma a superfície do código deste snapshot; não comprova execução no Android. As descrições vêm dos comentários da API. Membros sem explicação ainda exigem revisão editorial. ::: ## Declaração ```csharp readonly struct Astra.Components.ParentConstraint ``` Parent Constraint: Segue posição e rotação da fonte sem herdar escala. Família Lógica · Restrições. Referência estudada: https://docs.unity3d.com/6000.0/Documentation/Manual/class-ParentConstraint.html **Interfaces:** `Astra.Components.IComponentFacade`. Consulte também [Parent Constraint](/pt-br/snapshot-2026-10-06/componentes/astra-constraint-parent/) para propriedades, valores iniciais, requisitos e edição em Play. ## Membros | Membro | Categoria | |---|---| | [.ctor](#member-03882083609fe054) | Method | | [Remove](#member-487d5ea97ac88408) | Method | | [Wrap](#member-9dfa9a68dad48086) | Method | | [AxisX](#member-e2db75a0c2f5ceae) | Property | | [AxisY](#member-146fd2a0c95b5c62) | Property | | [AxisZ](#member-bcf297425ab640b2) | Property | | [Component](#member-7ad08519a01cb600) | Property | | [Enabled](#member-46f13a6d70855ad8) | Property | | [InstanceId](#member-8d15b6ffc976a6a2) | Property | | [IsAlive](#member-bfb767449da4a019) | Property | | [Object](#member-4987641d2a14417c) | Property | | [Offset](#member-4724bee579babac3) | Property | | [RotationOffset](#member-e277bdb9ebd71e27) | Property | | [RotationX](#member-d2903d8d7f201d1a) | Property | | [RotationY](#member-0f71d292d6d43fe0) | Property | | [RotationZ](#member-e1b948a5a423fb21) | Property | | [Target](#member-738cd77c43cedb8e) | Property | | [TypeId](#member-7594b72c1bc72dcd) | Property | | [Weight](#member-bc5a6b74f13439dd) | Property |

.ctor

```csharp public ParentConstraint(Astra.Component component) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `component` | `Astra.Component` | |

Remove

```csharp public void Remove() ``` Remove a instância pelo ciclo nativo; dependências e ownership podem recusar.

Wrap

```csharp public static Astra.Components.ParentConstraint Wrap(Astra.Component component) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `component` | `Astra.Component` | |

AxisX

```csharp public bool AxisX { get; set; } ``` Aplicar X

AxisY

```csharp public bool AxisY { get; set; } ``` Aplicar Y

AxisZ

```csharp public bool AxisZ { get; set; } ``` Aplicar Z

Component

```csharp public Astra.Component Component { get; } ```

Enabled

```csharp public bool Enabled { get; set; } ``` Ativo

InstanceId

```csharp public ulong InstanceId { get; } ```

IsAlive

```csharp public bool IsAlive { get; } ```

Object

```csharp public Astra.GameObject Object { get; } ```

Offset

```csharp public System.Numerics.Vector3 Offset { get; set; } ``` Posição offset

RotationOffset

```csharp public System.Numerics.Vector3 RotationOffset { get; set; } ``` Rotação offset

RotationX

```csharp public bool RotationX { get; set; } ``` Rotação X

RotationY

```csharp public bool RotationY { get; set; } ``` Rotação Y

RotationZ

```csharp public bool RotationZ { get; set; } ``` Rotação Z

Target

```csharp public Astra.ObjectReference Target { get; set; } ``` Fonte

TypeId

```csharp public static string TypeId { get; } ```

Weight

```csharp public float Weight { get; set; } ``` Peso Faixa válida: 0 a 1.