In my project are a lot of static objects. I tried to perform some operations with them. It worked in the editor, but neither the WebPlayer, nor the Standalone worked. You may easily reproduce it like that:
using UnityEngine;
using System.Collections;
public class IsStaticBug : MonoBehaviour {
protected void Start () {
if (gameObject.isStatic) {
Debug.Log ("Static");
} else {
Debug.Log ("Not Static");
}
}
}
Am I not allowed to check ‘isStatic’ at runtime or is this a bug?