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

C# public parameter with custom get/set doesnt shown in the Inspector

$
0
0
private bool _showFps; public bool ShowFps { get { return _showFps; } set { _showFps = value; GameObject.FindGameObjectWithTag("EnvironmentFps").GetComponent().FpsEnabled = value; } } _showFps configured in the Start() from correct Object/component. Why this Parameter doesn't show in the Inspector?

Viewing all articles
Browse latest Browse all 215

Trending Articles



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