Hello,
I am instantiating a plane that should serve as the playing field for my game. Because I want to specify its size in the menue, I need to alter it depending on that specification. Therefore I instantiate it and later change its size according to an integer variable called m_dimension. Unfortunately, the plane does not change size, no matter what I enter as dimension.
Here is the code:
m_World[0] = Instantiate(m_Plane, new Vector3(-50f, 0f, -50f), Quaternion.Euler(new Vector3(0f, 0f, 0f))) as GameObject;
m_World[0].transform.localScale.Set(m_dimension,1,m_dimension);
What did I do wrong?