I wanted to spawn gameobjects from the list one by one when the grip button in the controller is clicked. I have attached my code and the inspector which contains the list of gameobject but the code is not working. Need Help
\$\begingroup\$
\$\endgroup\$
3
-
\$\begingroup\$ At first you must check your DoGripClicked function in a simple way. For example paste Debug.Log("Hello world") code into your function. \$\endgroup\$– mirzo_bedilCommented Mar 13, 2019 at 19:38
-
\$\begingroup\$ Please include your code as text, not as images. Include a complete description of what specifically is not working: are you getting a compilation or runtime error? Is the function not getting called? Is it called but failing to have the desired effect? What does it do instead, if anything? \$\endgroup\$– DMGregory ♦Commented Mar 13, 2019 at 19:41
-
\$\begingroup\$ It looks like you've posted a copy of this question with a different initiation condition and a better code example. Since that version has an answer already, I'll close this older one as a duplicate. In future, to refine a question based on feedback or evolving needs, please use the edit button instead of posting a new separate question. \$\endgroup\$– DMGregory ♦Commented Mar 28, 2019 at 12:03
Add a comment
|