호출 된다.
* 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
example : MonoBehaviour {
void Example() {
transform.Translate(0, 1, 0);
GetComponent<Transform>().Translate(0, 1, 0);
}
}
public class example : MonoBeha
게 있음.
timeline
* 애니메이션 처리
Movility
* Object Transform : static으로 설정되어 있으면 움직이지 않는다.
또 그외
* 창을 떼어내서... | Input Key (?) | 어떤 입력을 받는다 |
* 라이트 : 오브젝트 -> Transform -> Mobility
* Stationary : 미리 만들어진 라이트를 사용하는
using DG.Tweening;
</code>
===== 움직임 설정 =====
Transform 에 확장 함수를 붙여서, 원래 붙어 있던 라이브러리 처럼 쓸 수 있음.
<code csharp>
GameObject _test_obj;
_test_obj.transform.DOMoveX(100, 1);
</code>
추가 파라미터가 없는 경우라면 바로 플레이