Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

ShadowCastingMode gives error

$
0
0
Hello, I am trying to disable casting shadows of an object using ShadowCastingMode inside an editor window. I tried it and got an error, so I then tried the code at runtime and got the same error: Unknown identifier: 'ShadowCastingMode'. Using the code: function Start () { var renderer = gameObject.GetComponent(MeshRenderer) as MeshRenderer; renderer.shadowCastingMode = ShadowCastingMode.Off; } ShadowCastingMode is an enumerator so this code should work, or have I missed something?

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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