Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Archives
Today
Total
관리 메뉴

codingfarm

생성 본문

Unity3d

생성

scarecrow1992 2022. 2. 21. 22:09

 

 

 

 

1
2
3
4
5
6
public Unit unit;
public Transform spawner;
 
public void Spawn(){
    Unit newUnit = Instantiate(unit, spawner.position, spawner.rotation) as Unit;
}
cs

 

 

 

 

 

 

'Unity3d' 카테고리의 다른 글

상속  (0) 2022.02.21
시간  (0) 2022.02.21
이동  (0) 2022.02.21
Ray  (0) 2022.02.21
코루틴  (0) 2022.02.20
Comments