816 lines
24 KiB
C#
816 lines
24 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000107 RID: 263
|
|
public class Transform : Component, IEnumerable
|
|
{
|
|
// Token: 0x06001275 RID: 4725 RVA: 0x0001867C File Offset: 0x0001687C
|
|
protected Transform()
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700039E RID: 926
|
|
// (get) Token: 0x06001276 RID: 4726 RVA: 0x00018688 File Offset: 0x00016888
|
|
// (set) Token: 0x06001277 RID: 4727 RVA: 0x000186A8 File Offset: 0x000168A8
|
|
public Vector3 position
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_position(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_position(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001278 RID: 4728
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_position(out Vector3 value);
|
|
|
|
// Token: 0x06001279 RID: 4729
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_position(ref Vector3 value);
|
|
|
|
// Token: 0x1700039F RID: 927
|
|
// (get) Token: 0x0600127A RID: 4730 RVA: 0x000186B4 File Offset: 0x000168B4
|
|
// (set) Token: 0x0600127B RID: 4731 RVA: 0x000186D4 File Offset: 0x000168D4
|
|
public Vector3 localPosition
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_localPosition(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_localPosition(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600127C RID: 4732
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_localPosition(out Vector3 value);
|
|
|
|
// Token: 0x0600127D RID: 4733
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_localPosition(ref Vector3 value);
|
|
|
|
// Token: 0x0600127E RID: 4734 RVA: 0x000186E0 File Offset: 0x000168E0
|
|
internal Vector3 GetLocalEulerAngles(RotationOrder order)
|
|
{
|
|
Vector3 vector;
|
|
Transform.INTERNAL_CALL_GetLocalEulerAngles(this, order, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x0600127F RID: 4735
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_GetLocalEulerAngles(Transform self, RotationOrder order, out Vector3 value);
|
|
|
|
// Token: 0x06001280 RID: 4736 RVA: 0x00018700 File Offset: 0x00016900
|
|
internal void SetLocalEulerAngles(Vector3 euler, RotationOrder order)
|
|
{
|
|
Transform.INTERNAL_CALL_SetLocalEulerAngles(this, ref euler, order);
|
|
}
|
|
|
|
// Token: 0x06001281 RID: 4737
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_SetLocalEulerAngles(Transform self, ref Vector3 euler, RotationOrder order);
|
|
|
|
// Token: 0x170003A0 RID: 928
|
|
// (get) Token: 0x06001282 RID: 4738 RVA: 0x0001870C File Offset: 0x0001690C
|
|
// (set) Token: 0x06001283 RID: 4739 RVA: 0x00018730 File Offset: 0x00016930
|
|
public Vector3 eulerAngles
|
|
{
|
|
get
|
|
{
|
|
return this.rotation.eulerAngles;
|
|
}
|
|
set
|
|
{
|
|
this.rotation = Quaternion.Euler(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A1 RID: 929
|
|
// (get) Token: 0x06001284 RID: 4740 RVA: 0x00018740 File Offset: 0x00016940
|
|
// (set) Token: 0x06001285 RID: 4741 RVA: 0x00018764 File Offset: 0x00016964
|
|
public Vector3 localEulerAngles
|
|
{
|
|
get
|
|
{
|
|
return this.localRotation.eulerAngles;
|
|
}
|
|
set
|
|
{
|
|
this.localRotation = Quaternion.Euler(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A2 RID: 930
|
|
// (get) Token: 0x06001286 RID: 4742 RVA: 0x00018774 File Offset: 0x00016974
|
|
// (set) Token: 0x06001287 RID: 4743 RVA: 0x0001879C File Offset: 0x0001699C
|
|
public Vector3 right
|
|
{
|
|
get
|
|
{
|
|
return this.rotation * Vector3.right;
|
|
}
|
|
set
|
|
{
|
|
this.rotation = Quaternion.FromToRotation(Vector3.right, value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A3 RID: 931
|
|
// (get) Token: 0x06001288 RID: 4744 RVA: 0x000187B0 File Offset: 0x000169B0
|
|
// (set) Token: 0x06001289 RID: 4745 RVA: 0x000187D8 File Offset: 0x000169D8
|
|
public Vector3 up
|
|
{
|
|
get
|
|
{
|
|
return this.rotation * Vector3.up;
|
|
}
|
|
set
|
|
{
|
|
this.rotation = Quaternion.FromToRotation(Vector3.up, value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A4 RID: 932
|
|
// (get) Token: 0x0600128A RID: 4746 RVA: 0x000187EC File Offset: 0x000169EC
|
|
// (set) Token: 0x0600128B RID: 4747 RVA: 0x00018814 File Offset: 0x00016A14
|
|
public Vector3 forward
|
|
{
|
|
get
|
|
{
|
|
return this.rotation * Vector3.forward;
|
|
}
|
|
set
|
|
{
|
|
this.rotation = Quaternion.LookRotation(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A5 RID: 933
|
|
// (get) Token: 0x0600128C RID: 4748 RVA: 0x00018824 File Offset: 0x00016A24
|
|
// (set) Token: 0x0600128D RID: 4749 RVA: 0x00018844 File Offset: 0x00016A44
|
|
public Quaternion rotation
|
|
{
|
|
get
|
|
{
|
|
Quaternion quaternion;
|
|
this.INTERNAL_get_rotation(out quaternion);
|
|
return quaternion;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_rotation(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600128E RID: 4750
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_rotation(out Quaternion value);
|
|
|
|
// Token: 0x0600128F RID: 4751
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_rotation(ref Quaternion value);
|
|
|
|
// Token: 0x170003A6 RID: 934
|
|
// (get) Token: 0x06001290 RID: 4752 RVA: 0x00018850 File Offset: 0x00016A50
|
|
// (set) Token: 0x06001291 RID: 4753 RVA: 0x00018870 File Offset: 0x00016A70
|
|
public Quaternion localRotation
|
|
{
|
|
get
|
|
{
|
|
Quaternion quaternion;
|
|
this.INTERNAL_get_localRotation(out quaternion);
|
|
return quaternion;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_localRotation(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001292 RID: 4754
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_localRotation(out Quaternion value);
|
|
|
|
// Token: 0x06001293 RID: 4755
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_localRotation(ref Quaternion value);
|
|
|
|
// Token: 0x170003A7 RID: 935
|
|
// (get) Token: 0x06001294 RID: 4756 RVA: 0x0001887C File Offset: 0x00016A7C
|
|
// (set) Token: 0x06001295 RID: 4757 RVA: 0x0001889C File Offset: 0x00016A9C
|
|
public Vector3 localScale
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_localScale(out vector);
|
|
return vector;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_localScale(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001296 RID: 4758
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_localScale(out Vector3 value);
|
|
|
|
// Token: 0x06001297 RID: 4759
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_localScale(ref Vector3 value);
|
|
|
|
// Token: 0x170003A8 RID: 936
|
|
// (get) Token: 0x06001298 RID: 4760 RVA: 0x000188A8 File Offset: 0x00016AA8
|
|
// (set) Token: 0x06001299 RID: 4761 RVA: 0x000188C4 File Offset: 0x00016AC4
|
|
public Transform parent
|
|
{
|
|
get
|
|
{
|
|
return this.parentInternal;
|
|
}
|
|
set
|
|
{
|
|
if (this is RectTransform)
|
|
{
|
|
Debug.LogWarning("Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.", this);
|
|
}
|
|
this.parentInternal = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170003A9 RID: 937
|
|
// (get) Token: 0x0600129A RID: 4762
|
|
// (set) Token: 0x0600129B RID: 4763
|
|
internal extern Transform parentInternal
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x0600129C RID: 4764 RVA: 0x000188E4 File Offset: 0x00016AE4
|
|
public void SetParent(Transform parent)
|
|
{
|
|
this.SetParent(parent, true);
|
|
}
|
|
|
|
// Token: 0x0600129D RID: 4765
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetParent(Transform parent, bool worldPositionStays);
|
|
|
|
// Token: 0x170003AA RID: 938
|
|
// (get) Token: 0x0600129E RID: 4766 RVA: 0x000188F0 File Offset: 0x00016AF0
|
|
public Matrix4x4 worldToLocalMatrix
|
|
{
|
|
get
|
|
{
|
|
Matrix4x4 matrix4x;
|
|
this.INTERNAL_get_worldToLocalMatrix(out matrix4x);
|
|
return matrix4x;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600129F RID: 4767
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_worldToLocalMatrix(out Matrix4x4 value);
|
|
|
|
// Token: 0x170003AB RID: 939
|
|
// (get) Token: 0x060012A0 RID: 4768 RVA: 0x00018910 File Offset: 0x00016B10
|
|
public Matrix4x4 localToWorldMatrix
|
|
{
|
|
get
|
|
{
|
|
Matrix4x4 matrix4x;
|
|
this.INTERNAL_get_localToWorldMatrix(out matrix4x);
|
|
return matrix4x;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A1 RID: 4769
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_localToWorldMatrix(out Matrix4x4 value);
|
|
|
|
// Token: 0x060012A2 RID: 4770 RVA: 0x00018930 File Offset: 0x00016B30
|
|
public void SetPositionAndRotation(Vector3 position, Quaternion rotation)
|
|
{
|
|
Transform.INTERNAL_CALL_SetPositionAndRotation(this, ref position, ref rotation);
|
|
}
|
|
|
|
// Token: 0x060012A3 RID: 4771
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_SetPositionAndRotation(Transform self, ref Vector3 position, ref Quaternion rotation);
|
|
|
|
// Token: 0x060012A4 RID: 4772 RVA: 0x00018940 File Offset: 0x00016B40
|
|
[ExcludeFromDocs]
|
|
public void Translate(Vector3 translation)
|
|
{
|
|
Space space = Space.Self;
|
|
this.Translate(translation, space);
|
|
}
|
|
|
|
// Token: 0x060012A5 RID: 4773 RVA: 0x00018958 File Offset: 0x00016B58
|
|
public void Translate(Vector3 translation, [DefaultValue("Space.Self")] Space relativeTo)
|
|
{
|
|
if (relativeTo == Space.World)
|
|
{
|
|
this.position += translation;
|
|
}
|
|
else
|
|
{
|
|
this.position += this.TransformDirection(translation);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A6 RID: 4774 RVA: 0x00018990 File Offset: 0x00016B90
|
|
[ExcludeFromDocs]
|
|
public void Translate(float x, float y, float z)
|
|
{
|
|
Space space = Space.Self;
|
|
this.Translate(x, y, z, space);
|
|
}
|
|
|
|
// Token: 0x060012A7 RID: 4775 RVA: 0x000189AC File Offset: 0x00016BAC
|
|
public void Translate(float x, float y, float z, [DefaultValue("Space.Self")] Space relativeTo)
|
|
{
|
|
this.Translate(new Vector3(x, y, z), relativeTo);
|
|
}
|
|
|
|
// Token: 0x060012A8 RID: 4776 RVA: 0x000189C0 File Offset: 0x00016BC0
|
|
public void Translate(Vector3 translation, Transform relativeTo)
|
|
{
|
|
if (relativeTo)
|
|
{
|
|
this.position += relativeTo.TransformDirection(translation);
|
|
}
|
|
else
|
|
{
|
|
this.position += translation;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A9 RID: 4777 RVA: 0x00018A00 File Offset: 0x00016C00
|
|
public void Translate(float x, float y, float z, Transform relativeTo)
|
|
{
|
|
this.Translate(new Vector3(x, y, z), relativeTo);
|
|
}
|
|
|
|
// Token: 0x060012AA RID: 4778 RVA: 0x00018A14 File Offset: 0x00016C14
|
|
[ExcludeFromDocs]
|
|
public void Rotate(Vector3 eulerAngles)
|
|
{
|
|
Space space = Space.Self;
|
|
this.Rotate(eulerAngles, space);
|
|
}
|
|
|
|
// Token: 0x060012AB RID: 4779 RVA: 0x00018A2C File Offset: 0x00016C2C
|
|
public void Rotate(Vector3 eulerAngles, [DefaultValue("Space.Self")] Space relativeTo)
|
|
{
|
|
Quaternion quaternion = Quaternion.Euler(eulerAngles.x, eulerAngles.y, eulerAngles.z);
|
|
if (relativeTo == Space.Self)
|
|
{
|
|
this.localRotation *= quaternion;
|
|
}
|
|
else
|
|
{
|
|
this.rotation *= Quaternion.Inverse(this.rotation) * quaternion * this.rotation;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AC RID: 4780 RVA: 0x00018AA4 File Offset: 0x00016CA4
|
|
[ExcludeFromDocs]
|
|
public void Rotate(float xAngle, float yAngle, float zAngle)
|
|
{
|
|
Space space = Space.Self;
|
|
this.Rotate(xAngle, yAngle, zAngle, space);
|
|
}
|
|
|
|
// Token: 0x060012AD RID: 4781 RVA: 0x00018AC0 File Offset: 0x00016CC0
|
|
public void Rotate(float xAngle, float yAngle, float zAngle, [DefaultValue("Space.Self")] Space relativeTo)
|
|
{
|
|
this.Rotate(new Vector3(xAngle, yAngle, zAngle), relativeTo);
|
|
}
|
|
|
|
// Token: 0x060012AE RID: 4782 RVA: 0x00018AD4 File Offset: 0x00016CD4
|
|
internal void RotateAroundInternal(Vector3 axis, float angle)
|
|
{
|
|
Transform.INTERNAL_CALL_RotateAroundInternal(this, ref axis, angle);
|
|
}
|
|
|
|
// Token: 0x060012AF RID: 4783
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_RotateAroundInternal(Transform self, ref Vector3 axis, float angle);
|
|
|
|
// Token: 0x060012B0 RID: 4784 RVA: 0x00018AE0 File Offset: 0x00016CE0
|
|
[ExcludeFromDocs]
|
|
public void Rotate(Vector3 axis, float angle)
|
|
{
|
|
Space space = Space.Self;
|
|
this.Rotate(axis, angle, space);
|
|
}
|
|
|
|
// Token: 0x060012B1 RID: 4785 RVA: 0x00018AFC File Offset: 0x00016CFC
|
|
public void Rotate(Vector3 axis, float angle, [DefaultValue("Space.Self")] Space relativeTo)
|
|
{
|
|
if (relativeTo == Space.Self)
|
|
{
|
|
this.RotateAroundInternal(base.transform.TransformDirection(axis), angle * 0.017453292f);
|
|
}
|
|
else
|
|
{
|
|
this.RotateAroundInternal(axis, angle * 0.017453292f);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B2 RID: 4786 RVA: 0x00018B34 File Offset: 0x00016D34
|
|
public void RotateAround(Vector3 point, Vector3 axis, float angle)
|
|
{
|
|
Vector3 vector = this.position;
|
|
Quaternion quaternion = Quaternion.AngleAxis(angle, axis);
|
|
Vector3 vector2 = vector - point;
|
|
vector2 = quaternion * vector2;
|
|
vector = point + vector2;
|
|
this.position = vector;
|
|
this.RotateAroundInternal(axis, angle * 0.017453292f);
|
|
}
|
|
|
|
// Token: 0x060012B3 RID: 4787 RVA: 0x00018B80 File Offset: 0x00016D80
|
|
[ExcludeFromDocs]
|
|
public void LookAt(Transform target)
|
|
{
|
|
Vector3 up = Vector3.up;
|
|
this.LookAt(target, up);
|
|
}
|
|
|
|
// Token: 0x060012B4 RID: 4788 RVA: 0x00018B9C File Offset: 0x00016D9C
|
|
public void LookAt(Transform target, [DefaultValue("Vector3.up")] Vector3 worldUp)
|
|
{
|
|
if (target)
|
|
{
|
|
this.LookAt(target.position, worldUp);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B5 RID: 4789 RVA: 0x00018BB8 File Offset: 0x00016DB8
|
|
public void LookAt(Vector3 worldPosition, [DefaultValue("Vector3.up")] Vector3 worldUp)
|
|
{
|
|
Transform.INTERNAL_CALL_LookAt(this, ref worldPosition, ref worldUp);
|
|
}
|
|
|
|
// Token: 0x060012B6 RID: 4790 RVA: 0x00018BC8 File Offset: 0x00016DC8
|
|
[ExcludeFromDocs]
|
|
public void LookAt(Vector3 worldPosition)
|
|
{
|
|
Vector3 up = Vector3.up;
|
|
Transform.INTERNAL_CALL_LookAt(this, ref worldPosition, ref up);
|
|
}
|
|
|
|
// Token: 0x060012B7 RID: 4791
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_LookAt(Transform self, ref Vector3 worldPosition, ref Vector3 worldUp);
|
|
|
|
// Token: 0x060012B8 RID: 4792 RVA: 0x00018BE8 File Offset: 0x00016DE8
|
|
public Vector3 TransformDirection(Vector3 direction)
|
|
{
|
|
Vector3 vector;
|
|
Transform.INTERNAL_CALL_TransformDirection(this, ref direction, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x060012B9 RID: 4793
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_TransformDirection(Transform self, ref Vector3 direction, out Vector3 value);
|
|
|
|
// Token: 0x060012BA RID: 4794 RVA: 0x00018C08 File Offset: 0x00016E08
|
|
public Vector3 TransformDirection(float x, float y, float z)
|
|
{
|
|
return this.TransformDirection(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x060012BB RID: 4795 RVA: 0x00018C2C File Offset: 0x00016E2C
|
|
public Vector3 InverseTransformDirection(Vector3 direction)
|
|
{
|
|
Vector3 vector;
|
|
Transform.INTERNAL_CALL_InverseTransformDirection(this, ref direction, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x060012BC RID: 4796
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_InverseTransformDirection(Transform self, ref Vector3 direction, out Vector3 value);
|
|
|
|
// Token: 0x060012BD RID: 4797 RVA: 0x00018C4C File Offset: 0x00016E4C
|
|
public Vector3 InverseTransformDirection(float x, float y, float z)
|
|
{
|
|
return this.InverseTransformDirection(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x060012BE RID: 4798 RVA: 0x00018C70 File Offset: 0x00016E70
|
|
public Vector3 TransformVector(Vector3 vector)
|
|
{
|
|
Vector3 vector2;
|
|
Transform.INTERNAL_CALL_TransformVector(this, ref vector, out vector2);
|
|
return vector2;
|
|
}
|
|
|
|
// Token: 0x060012BF RID: 4799
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_TransformVector(Transform self, ref Vector3 vector, out Vector3 value);
|
|
|
|
// Token: 0x060012C0 RID: 4800 RVA: 0x00018C90 File Offset: 0x00016E90
|
|
public Vector3 TransformVector(float x, float y, float z)
|
|
{
|
|
return this.TransformVector(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x060012C1 RID: 4801 RVA: 0x00018CB4 File Offset: 0x00016EB4
|
|
public Vector3 InverseTransformVector(Vector3 vector)
|
|
{
|
|
Vector3 vector2;
|
|
Transform.INTERNAL_CALL_InverseTransformVector(this, ref vector, out vector2);
|
|
return vector2;
|
|
}
|
|
|
|
// Token: 0x060012C2 RID: 4802
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_InverseTransformVector(Transform self, ref Vector3 vector, out Vector3 value);
|
|
|
|
// Token: 0x060012C3 RID: 4803 RVA: 0x00018CD4 File Offset: 0x00016ED4
|
|
public Vector3 InverseTransformVector(float x, float y, float z)
|
|
{
|
|
return this.InverseTransformVector(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x060012C4 RID: 4804 RVA: 0x00018CF8 File Offset: 0x00016EF8
|
|
public Vector3 TransformPoint(Vector3 position)
|
|
{
|
|
Vector3 vector;
|
|
Transform.INTERNAL_CALL_TransformPoint(this, ref position, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x060012C5 RID: 4805
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_TransformPoint(Transform self, ref Vector3 position, out Vector3 value);
|
|
|
|
// Token: 0x060012C6 RID: 4806 RVA: 0x00018D18 File Offset: 0x00016F18
|
|
public Vector3 TransformPoint(float x, float y, float z)
|
|
{
|
|
return this.TransformPoint(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x060012C7 RID: 4807 RVA: 0x00018D3C File Offset: 0x00016F3C
|
|
public Vector3 InverseTransformPoint(Vector3 position)
|
|
{
|
|
Vector3 vector;
|
|
Transform.INTERNAL_CALL_InverseTransformPoint(this, ref position, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x060012C8 RID: 4808
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_InverseTransformPoint(Transform self, ref Vector3 position, out Vector3 value);
|
|
|
|
// Token: 0x060012C9 RID: 4809 RVA: 0x00018D5C File Offset: 0x00016F5C
|
|
public Vector3 InverseTransformPoint(float x, float y, float z)
|
|
{
|
|
return this.InverseTransformPoint(new Vector3(x, y, z));
|
|
}
|
|
|
|
// Token: 0x170003AC RID: 940
|
|
// (get) Token: 0x060012CA RID: 4810
|
|
public extern Transform root
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x170003AD RID: 941
|
|
// (get) Token: 0x060012CB RID: 4811
|
|
public extern int childCount
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x060012CC RID: 4812
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void DetachChildren();
|
|
|
|
// Token: 0x060012CD RID: 4813
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetAsFirstSibling();
|
|
|
|
// Token: 0x060012CE RID: 4814
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetAsLastSibling();
|
|
|
|
// Token: 0x060012CF RID: 4815
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetSiblingIndex(int index);
|
|
|
|
// Token: 0x060012D0 RID: 4816
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern int GetSiblingIndex();
|
|
|
|
// Token: 0x060012D1 RID: 4817
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern Transform Find(string name);
|
|
|
|
// Token: 0x170003AE RID: 942
|
|
// (get) Token: 0x060012D2 RID: 4818 RVA: 0x00018D80 File Offset: 0x00016F80
|
|
public Vector3 lossyScale
|
|
{
|
|
get
|
|
{
|
|
Vector3 vector;
|
|
this.INTERNAL_get_lossyScale(out vector);
|
|
return vector;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012D3 RID: 4819
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_lossyScale(out Vector3 value);
|
|
|
|
// Token: 0x060012D4 RID: 4820
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern bool IsChildOf(Transform parent);
|
|
|
|
// Token: 0x170003AF RID: 943
|
|
// (get) Token: 0x060012D5 RID: 4821
|
|
// (set) Token: 0x060012D6 RID: 4822
|
|
public extern bool hasChanged
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x060012D7 RID: 4823 RVA: 0x00018DA0 File Offset: 0x00016FA0
|
|
[Obsolete("FindChild has been deprecated. Use Find instead (UnityUpgradable) -> Find([mscorlib] System.String)", false)]
|
|
public Transform FindChild(string name)
|
|
{
|
|
return this.Find(name);
|
|
}
|
|
|
|
// Token: 0x060012D8 RID: 4824 RVA: 0x00018DBC File Offset: 0x00016FBC
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return new Transform.Enumerator(this);
|
|
}
|
|
|
|
// Token: 0x060012D9 RID: 4825 RVA: 0x00018DD8 File Offset: 0x00016FD8
|
|
[Obsolete("use Transform.Rotate instead.")]
|
|
public void RotateAround(Vector3 axis, float angle)
|
|
{
|
|
Transform.INTERNAL_CALL_RotateAround(this, ref axis, angle);
|
|
}
|
|
|
|
// Token: 0x060012DA RID: 4826
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_RotateAround(Transform self, ref Vector3 axis, float angle);
|
|
|
|
// Token: 0x060012DB RID: 4827 RVA: 0x00018DE4 File Offset: 0x00016FE4
|
|
[Obsolete("use Transform.Rotate instead.")]
|
|
public void RotateAroundLocal(Vector3 axis, float angle)
|
|
{
|
|
Transform.INTERNAL_CALL_RotateAroundLocal(this, ref axis, angle);
|
|
}
|
|
|
|
// Token: 0x060012DC RID: 4828
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_RotateAroundLocal(Transform self, ref Vector3 axis, float angle);
|
|
|
|
// Token: 0x060012DD RID: 4829
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern Transform GetChild(int index);
|
|
|
|
// Token: 0x060012DE RID: 4830
|
|
[Obsolete("use Transform.childCount instead.")]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern int GetChildCount();
|
|
|
|
// Token: 0x170003B0 RID: 944
|
|
// (get) Token: 0x060012DF RID: 4831
|
|
// (set) Token: 0x060012E0 RID: 4832
|
|
public extern int hierarchyCapacity
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170003B1 RID: 945
|
|
// (get) Token: 0x060012E1 RID: 4833
|
|
public extern int hierarchyCount
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x02000108 RID: 264
|
|
private sealed class Enumerator : IEnumerator
|
|
{
|
|
// Token: 0x060012E2 RID: 4834 RVA: 0x00018DF0 File Offset: 0x00016FF0
|
|
internal Enumerator(Transform outer)
|
|
{
|
|
this.outer = outer;
|
|
}
|
|
|
|
// Token: 0x170003B2 RID: 946
|
|
// (get) Token: 0x060012E3 RID: 4835 RVA: 0x00018E08 File Offset: 0x00017008
|
|
public object Current
|
|
{
|
|
get
|
|
{
|
|
return this.outer.GetChild(this.currentIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012E4 RID: 4836 RVA: 0x00018E30 File Offset: 0x00017030
|
|
public bool MoveNext()
|
|
{
|
|
int childCount = this.outer.childCount;
|
|
return ++this.currentIndex < childCount;
|
|
}
|
|
|
|
// Token: 0x060012E5 RID: 4837 RVA: 0x00018E68 File Offset: 0x00017068
|
|
public void Reset()
|
|
{
|
|
this.currentIndex = -1;
|
|
}
|
|
|
|
// Token: 0x04000270 RID: 624
|
|
private Transform outer;
|
|
|
|
// Token: 0x04000271 RID: 625
|
|
private int currentIndex = -1;
|
|
}
|
|
}
|
|
}
|