- Home /
Interact with procedural mesh hosted on a GameObject created at runtime
I have a script that creates a GameObject each time the player clicks and drags in 3D space. Then a procedural mesh is created using the player's mouse inputs. The procedural mesh is hosted on the created GameObject.
The process repeats itself, the player clicks and drags again, a new GameObject is created, and a new procedural mesh is drawn, hosted on that GameObject.
I'd now like the player to interact with each of the procedural meshes / GameObjects
Is this possible? I decided to create a new GameObject for each procedural mesh because I plan to add data to each GameObject, and when the player clicks on the mesh, the data can be displayed.
How do I apply behavior to a GameObject that was created at runtime?
Your answer
Follow this Question
Related Questions
Generating road meshes from a spline 2 Answers
Can and should a procedural mesh be shared between multiple GameObjects 1 Answer
Optimization and generating terrains 2 Answers
How do i do frustum culling in runtime 0 Answers
GameObject generated during runtime is not transparent on mobile device 0 Answers