
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Stingray community
slowly I'm starting to extend the editor functionality of Stingray and to write my own custom nodes and classes etc. the training videos by you guys have been a great help so far.
Nevertheless, I came accross the fact that I want to create geometry based on a button click. I don't want to procedurally create new meshes, I actually would like to do two things that are pretty standard in Unity for example.
1. I want to click a button from a custom plugin (already have that) and create a simple cube at a fixed position in the 3D world. What I miss here is the LUA-command for creating a primitive. I've been searching for "stingray.Primitive" or "stingray.Cube" but could not find anything.
2. I want to click a button from a custom plugin and instance an object from a sort of prefab or a resource stored somewhere as a unit (?) and place it in the world. In Unity you would need to store the "Prefab" inside of the project's resources folder or download it asychronously via an asset bundle, pass the path to the GameObject.Instance(...) method and you're done.
How would I achieve something like that in LUA for Stingray?
Best regards
Mirko
Solved! Go to Solution.