This line woks in my js file. I am converting my files to c#. Anyone know what is wrong with this code? Here I am referencing a child. WorldFlagTexturizer is a c# script and flagCode is a string
transform.Find("Flag_quad").GetComponent("WorldFlagTexturizer").flagCode = "skull";
the error msg in unty is…
UnityEngine.Component’ does not contain a definition for flagCode' and no extension method
flagCode’ of type `UnityEngine.Component’ could be found (are you missing a using directive or an assembly reference?)