02-25-2016, 12:29 AM
(This post was last modified: 02-25-2016, 12:30 AM by Trainzland.)
I used a singelton and placed it Refresh(); AnyStaticVar.Show.counter++;
Hmm now it works. Very strange. I changed something on Play(), and now it didn't occur again and its not reproducible.
Code:
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class AnyStaticVar : MonoBehaviour {
static public AnyStaticVar Show;
public int counter;
void Awake() {
Show = this;
}
}
Hmm now it works. Very strange. I changed something on Play(), and now it didn't occur again and its not reproducible.
(Henry Ford) Each hour more of searching is each hour less of your live time.