Question by
Kyriet · Aug 31, 2016 at 08:10 PM ·
componentstaticnullinitialization
How to create static component?
Example:
public class Example : MonoBehaviour
{
static TextMesh text = new TextMesh();
void Update()
{
print( text.ToString() ); // prints null
}
}
Why is there null? How can I get static member like this?
Comment