- Home /
Duplicate Question
Can't read data from static mesh?
Hello
I'm using static flag now as it seems better since unity 5 than combine them with a script. Problem is i use a couple of functions that need to acces vertices, triangles etc from those meshes (for drawing a mesh for a decal) and Unity tells me I can't.
I can't set them to non static and back to static on the fly since it would need the editor.
I understand that the engine need to protect data from being written but the reading? I don't get why it would be also protected... Maybe i'm doig something wrong. What's are your thoughts on this?
Btw my meshes have the write/read check so it's not that, it works only if i remove the static flag. I can't afford that or i have to return in the old way... Combining myself.
Follow this Question
Related Questions
Re-meshing Static Objects as one mesh? 1 Answer
Occlusion Culling with Static Mesh Render Object 0 Answers
how to acess Static variable in other scripts without extended functions? 2 Answers
Access skinned mesh vertices 2 Answers
An object reference is required to accsess a non-static member 'Lives.loselife()' 1 Answer