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

Cannot convert 'object' expression to 'float'

$
0
0
error CS0236: A field initializer cannot reference the nonstatic field, method, or property `randomGen.blockPos' error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float)' has some invalid arguments error CS1503: Argument `#2' cannot convert `object' expression to type `float' The code: float blockPos = 6f; Vector3 placeBlockPos = new Vector3(0, blockPos);

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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