Closed kelden closed 4 years ago
Thank you! I went ahead and fixed that on my site. Sometimes I edit my own copy-pasted code just for the tutorials without going through the compiler, and this sort of thing happens.
FYI, that tutorial is actually out-of-sync with this project now, come to think of it. I still use the same strategy, but generalized the spawning to work for any prefab, and any combination of IComponentData
andIBufferElementData
. I turned it into a UPM package. You may read about it here.
With the conversion to UPM packages, and work releasing ubump, my site's been neglected for about a month. In the coming days I'll update the affected tutorials accordingly, and write more posts.
Thanks again.
This code:
located at Spawning Prefabs with Unity ECS | Reese Schultz, if copy-pasted by a naive pupil such as myself causes the following error when you try to attach it to a game object:
"Can't add script behaviour. The script needs to derive from MonoBheaviour!"
Fix:
Thanks for the awesome tutorial btw :)