/// <summary> /// Snaps this transform's properties to those on the given transform. /// </summary> static public void SnapTo(this Transform inTransform, Transform inTarget, TransformProperties inProperties = TransformProperties.All, Space inSpace = Space.World) { TransformState state = (inSpace == Space.World ? TransformState.WorldState() : TransformState.LocalState()); state.Refresh(inTarget, inProperties); state.Apply(inTransform, inProperties); }
public void ApplyTween(float inPercent) { m_End.Refresh(m_Target, m_Properties); TransformState.Lerp(ref m_Current, m_Start, m_End, inPercent); m_Current.Apply(m_Transform, m_Properties); }