Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

Help with GetType().GetField().GetValue()

$
0
0
Hello People! I've find a solution to read variable values from a string, but my code does not work... its have error all time, what I'm missing? or What is wrong? this.GetType(int).GetField("Resource"+LoadedResource).GetValue(); LoadedREsource is a string name, and when i use Debug.Log("Resource"+LoadedResource) Is exactly what i need, but this is not the problem, the line remains with the red mark of "incorrect".. Anny help? Thanks guys!

Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>