Class ScaleConstraint
Inheritance
ScaleConstraint
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class ScaleConstraint : Behaviour, IConstraint, IConstraintInternal
Properties
constraintActive
Declaration
public bool constraintActive { get; set; }
Property Value
locked
Declaration
public bool locked { get; set; }
Property Value
scaleAtRest
Declaration
public Vector3 scaleAtRest { get; set; }
Property Value
scaleOffset
Declaration
public Vector3 scaleOffset { get; set; }
Property Value
scalingAxis
Declaration
public Axis scalingAxis { get; set; }
Property Value
|
Improve this Doc
View Source
sourceCount
Declaration
public int sourceCount { get; }
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
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