GameObject currentEntity = Instantiate(entityToSpawn, spawnManagerValues.spawnPoints, Quaternion.identity) Creates an instance of the prefab at the current spawn point. This will be appended to the name of the created entities and increment when each is created.įor (int i = 0 i < spawnManagerValues.numberOfPrefabsToCreate i++) Public SpawnManagerScriptableObject spawnManagerValues An instance of the ScriptableObject defined above. You can use the CreateAssetMenu attribute to make it easy to create custom assets using your class. To use a ScriptableObject, create a script in your application’s Assets folder and make it inherit from the ScriptableObject class.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |