호출 된다.
* Awake 는 Start 보다 먼저 실행된다.
====== 오브젝트 transform 복사 ======
더 좋은 방법 없나..
<code csharp>
GameObj_1.transform.position = GameObj_2.transform.position;
GameObj_1.transform.transform = GameObj_2.transform.transform;
</code>
====== 오브젝트 선택 or 컴포넌트 선택
dio 를 리셋한다.
만약 이걸로도 안되면, 전부 재설치 하는 수 밖에.
====== Transform 에 world transform 추가 ======
===== NGUI를 사용하는 경우 =====
** NGUITransformInspector.cs** 파일을 연다.
<code csharp>... l();
// 그 다음..
// If something changes, set the transform values
if (GUI.changed)
{
// 다음 코드를 추가 (undo용)
... ;
using System.Collections;
[CustomEditor(typeof(Transform))]
public class WorldTransformInspector : Editor
ns]]
* [[http://wiki.unity3d.com/index.php/ScaleTransform|ScaleTransform]] : ( getBound 와 같은 함수가 있다 )
에디터
* [[http://wiki.unity3d.com/index.php/CurveEditorTools|C
example : MonoBehaviour {
void Example() {
transform.Translate(0, 1, 0);
GetComponent<Transform>().Translate(0, 1, 0);
}
}
public class example : MonoBeha
using DG.Tweening;
</code>
===== 움직임 설정 =====
Transform 에 확장 함수를 붙여서, 원래 붙어 있던 라이브러리 처럼 쓸 수 있음.
<code csharp>
GameObject _test_obj;
_test_obj.transform.DOMoveX(100, 1);
</code>
추가 파라미터가 없는 경우라면 바로 플레이