250109 TIL

박소희·2025년 1월 9일

Unity_7기

목록 보기
8/94

Instantiate(프리펩, 위치, Quaternion(회전값)
// Instantiate(prefab, new Vector(x, y), Quanternion.identity >> 회전값 x);

rigidbody 2D
  • Body Type: Kinematic -> 중력 영향 x
  • Kinematic으로 하면 onCollision 못씀 -> onTrigger 사용

Destroy(gameObject, nf); // n초 뒤에 destroy

Rect Transform
  • pivot: 기준점

0개의 댓글