[Unity] GetComponent

2024. 4. 22. 16:06언어 및 엔진/Unity

GetComponent

GetComponent(); - 제네릭 방식


GetComponent("Transform") as Transform;


(Transform)GetComponent(typeof(Transform));

'언어 및 엔진 > Unity' 카테고리의 다른 글

[Unity] Rigidbody  (0) 2024.04.23
[Unity] Vector3 데이터 방식  (0) 2024.04.22
[Unity] Sky  (0) 2024.04.22
[Unity] Light  (0) 2024.04.22
[Unity] Rendering Mode  (0) 2024.04.22