Class FollowTransform
Allows a 'source' transform to follow the position and/or rotation of a 'target' ModelCacheAwareTransformInput.
Inheritance
FollowTransform
Assembly: cs.temp.dll.dll
public class FollowTransform
Constructors
Declaration
public FollowTransform(Transform source, Action targetInvalidCallback)
Parameters
Type |
Name |
Description |
Transform |
source |
|
System.Action |
targetInvalidCallback |
|
Properties
Declaration
public bool HasTarget { get; }
Property Value
Methods
Declaration
public void ResetTarget()
Declaration
public void SetTarget(Transform target, bool enableCallback, bool followPosition = true, bool followRotation = false)
Parameters
Type |
Name |
Description |
Transform |
target |
|
Boolean |
enableCallback |
|
Boolean |
followPosition |
|
Boolean |
followRotation |
|
Declaration
public void SetTarget(Transform target, Vector3 offset, bool enableCallback, bool followPosition = true, bool followRotation = false)
Parameters
Type |
Name |
Description |
Transform |
target |
|
Vector3 |
offset |
|
Boolean |
enableCallback |
|
Boolean |
followPosition |
|
Boolean |
followRotation |
|
Declaration