// Use this for initialization void OnEnable() { pmg = (PigmentMapGenerator)target; GetProperties(); }