Quantcast
Channel: Latest Questions by JackStix
Viewing all articles
Browse latest Browse all 8

Changing a Mesh (C#)

$
0
0
I'm trying to have this script load `Body` from the top of a `Resources` folder and place it on the `GameObject` it's attached to. `this.gameObject.GetComponent().mesh = Resources.Load("Body");` But the error I'm getting is: `error CS0266: Cannot implicitly convert type `UnityEngine.Object' to `UnityEngine.Mesh'. An explicit conversion exists (are you missing a cast?)`

Viewing all articles
Browse latest Browse all 8

Trending Articles



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