Unity

[Unity] 리소스 실시간 로드 및 배치

오즈마스터 2019. 9. 9. 12:35

GameObject prefab = Resources.Load<GameObject>("prefabs/myresourcename");
GameObject bullet = Instantiate<GameObject>(prefab, new Vector3(pos.x, pos.y, 0.0f), Quaternion.identity);