'2015/01/02'에 해당되는 글 3건
- 2015.01.02 히어라이키 순서 변경(SetAsLastSibling, SetAsFirstSibling)
- 2015.01.02 부모 오브젝트 변경(SetParent)
- 2015.01.02 자기 자신의 컴포넌트 혹은 그 위 부모의 컴포넌트 반환(제네릭)
4.6 부터 unity canvas 가 생기고 히어라이키에 순서에 따라 보여지는 order by layer 값이 달라짐..
맨 위에 위치한게 가장 위에 뿌려짐..
그러므로 히어라이키의 순서가 변경되는 api 가 중요해짐.
가장 마지막으로 순서 변경
Move the transform to the end of the local transfrom list.
가장 처음으로 순서 변경
Move the transform to the start of the local transfrom list.
순서 설정(index 값)
Sets the sibling index.
현재 순서 반환(index 값)
Gets the sibling index.
'유니티 > Note' 카테고리의 다른 글
| Unity3d Stealth 에서 사용되는 Animator 관리( HashID) (0) | 2015.01.04 |
|---|---|
| unity3d Stealth 코딩 스타일(Tag 를 사용) (0) | 2015.01.04 |
| 히어라이키 순서 변경(SetAsLastSibling, SetAsFirstSibling) (0) | 2015.01.02 |
| 부모 오브젝트 변경(SetParent) (0) | 2015.01.02 |
| 자기 자신의 컴포넌트 혹은 그 위 부모의 컴포넌트 반환(제네릭) (0) | 2015.01.02 |
| bassio (0) | 2014.12.23 |
Transform.SetParent
SWITCH TO MANUALParameters
| parent | The parent Transform to use. |
| worldPositionStays | If true, the parent-relative position, scale and rotation is modified such that the object keeps the same world space position, rotation and scale as before. |
Description
Set the parent of the transform.
This method is the same as the parent property except that it's possible to make the Transform keep its local orientation rather than its global orientation by setting the worldPositionStays parameter to false.
두번째 인자 false 면 현재 transform 값 그대로 유지됨. ( 로컬포지션값이 그대로 유지 됨 -> 결국엔 부모 오브젝트에 따라 위치
크기 등 변경.. 화면에 보이는 이미지가 변경)
첫번째 값 true면 transform 값 변경( 화면에 보이는 건 그대로 지만 로컬 포지션값이 변경됨)
'유니티 > Note' 카테고리의 다른 글
| unity3d Stealth 코딩 스타일(Tag 를 사용) (0) | 2015.01.04 |
|---|---|
| 히어라이키 순서 변경(SetAsLastSibling, SetAsFirstSibling) (0) | 2015.01.02 |
| 부모 오브젝트 변경(SetParent) (0) | 2015.01.02 |
| 자기 자신의 컴포넌트 혹은 그 위 부모의 컴포넌트 반환(제네릭) (0) | 2015.01.02 |
| bassio (0) | 2014.12.23 |
| 강좌 (0) | 2014.12.19 |
'유니티 > Note' 카테고리의 다른 글
| 히어라이키 순서 변경(SetAsLastSibling, SetAsFirstSibling) (0) | 2015.01.02 |
|---|---|
| 부모 오브젝트 변경(SetParent) (0) | 2015.01.02 |
| 자기 자신의 컴포넌트 혹은 그 위 부모의 컴포넌트 반환(제네릭) (0) | 2015.01.02 |
| bassio (0) | 2014.12.23 |
| 강좌 (0) | 2014.12.19 |
| 게임 매니저에서 사운드 관리하기. (0) | 2014.12.03 |


