Trying to store an object reference dynamically during runtime to use buttons to rotate it.

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

Sounds like it is time for you to start debugging!

By debugging you can find out exactly what your program is doing so you can fix it.

Use the above techniques to get the information you need in order to reason about what the problem is.

You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.

1 Like