Declaration
func CreateLevelObject(out var createdEntity entity<LevelObject>, position Vector3, levelObject int)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Postion | Vector3 | The location where the object is spawned |
| Level Object | Int | The created object type ID. Need to be registered in the asset registry before using it in the code script. |
Out
| Name | Type | Description |
|---|---|---|
| Created Entity | LevelObject | Created scene object entity |