Class ParentConstraint
Inheritance
ParentConstraint
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class ParentConstraint : Behaviour, IConstraint, IConstraintInternal
Properties
constraintActive
Declaration
public bool constraintActive { get; set; }
Property Value
locked
Declaration
public bool locked { get; set; }
Property Value
rotationAtRest
Declaration
public Vector3 rotationAtRest { get; set; }
Property Value
rotationAxis
Declaration
public Axis rotationAxis { get; set; }
Property Value
rotationOffsets
Declaration
public Vector3[] rotationOffsets { get; set; }
Property Value
|
Improve this Doc
View Source
sourceCount
Declaration
public int sourceCount { get; }
Property Value
translationAtRest
Declaration
public Vector3 translationAtRest { get; set; }
Property Value
translationAxis
Declaration
public Axis translationAxis { get; set; }
Property Value
translationOffsets
Declaration
public Vector3[] translationOffsets { get; set; }
Property Value
weight
Declaration
public float weight { get; set; }
Property Value
Methods
AddSource(ConstraintSource)
Declaration
public int AddSource(ConstraintSource source)
Parameters
Returns
|
Improve this Doc
View Source
GetRotationOffset(Int32)
Declaration
public Vector3 GetRotationOffset(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetSource(Int32)
Declaration
public ConstraintSource GetSource(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetSources(List<ConstraintSource>)
Declaration
public void GetSources(List<ConstraintSource> sources)
Parameters
|
Improve this Doc
View Source
GetTranslationOffset(Int32)
Declaration
public Vector3 GetTranslationOffset(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
RemoveSource(Int32)
Declaration
public void RemoveSource(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
SetRotationOffset(Int32, Vector3)
Declaration
public void SetRotationOffset(int index, Vector3 value)
Parameters
|
Improve this Doc
View Source
SetSource(Int32, ConstraintSource)
Declaration
public void SetSource(int index, ConstraintSource source)
Parameters
|
Improve this Doc
View Source
SetSources(List<ConstraintSource>)
Declaration
public void SetSources(List<ConstraintSource> sources)
Parameters
|
Improve this Doc
View Source
SetTranslationOffset(Int32, Vector3)
Declaration
public void SetTranslationOffset(int index, Vector3 value)
Parameters
Implements
Extension Methods