Unity static object don’t move in code?

This is strange. Seems to me, anyway. I had an object whose render mesh wouldn’t move when I set its position in code. Looked like this before moving:

Code changed its transform’s position, easy enough. Here’s what it looked like:

Kinda open, but not.

The problem was the object was marked as static. Turned static off (and for all its kids), and it worked.

I’d thought of static being about the old nav system, but it’s more than that.

Leave a Comment

Your email address will not be published. Required fields are marked *

Auto
Scroll to Top