Class LookAtConstraint
Inheritance
LookAtConstraint
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class LookAtConstraint : Behaviour, IConstraint, IConstraintInternal
Properties
constraintActive
Declaration
public bool constraintActive { get; set; }
Property Value
locked
Declaration
public bool locked { get; set; }
Property Value
roll
Declaration
public float roll { get; set; }
Property Value
rotationAtRest
Declaration
public Vector3 rotationAtRest { get; set; }
Property Value
rotationOffset
Declaration
public Vector3 rotationOffset { get; set; }
Property Value
|
Improve this Doc
View Source
sourceCount
Declaration
public int sourceCount { get; }
Property Value
useUpObject
Declaration
public bool useUpObject { get; set; }
Property Value
weight
Declaration
public float weight { get; set; }
Property Value
worldUpObject
Declaration
public Transform worldUpObject { get; set; }
Property Value
Methods
AddSource(ConstraintSource)
Declaration
public int AddSource(ConstraintSource source)
Parameters
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
RemoveSource(Int32)
Declaration
public void RemoveSource(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
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
Implements
Extension Methods