Hi Guys, having trouble getting a 2d math equation to show up in a secondary camera layer. The instantiated PowerUp object shows in the second layer, but the GUI, though a child object, appears in the camera.main. I’m using the same script to generate equations for the asteroid equations and the PowerUP equations, using a conditional to separate them out. Should I use and array of cameras for different GUI? Can I get a reference to a second camera on the fly like Camera.main ??? Not sure. Appreciate your brilliance and generosity.
if(m_quientGT)
{
m_quientGT.transform.position = Camera.main.WorldToViewportPoint(transform.position+quientOffset);
if (this.gameObject.tag == "PowerUp")
{
m_quientGT.transform.position = Camera.????????????.WorldToViewportPoint(transform.position+quientOffset);
}
}