void OnEnable() { castedTarget = (RealtimeReflections)target; resolutionsStrings = new string[resolutions.Length]; for (int i = 0; i < resolutions.Length; i++) { resolutionsStrings[i] = resolutions[i].ToString(); } myTarget = new SerializedObject(target); layerMask = myTarget.FindProperty("layerMask"); materials = myTarget.FindProperty("materials"); }
void OnEnable() { castedTarget = (RealtimeReflections)target; resolutionsStrings = new string[resolutions.Length]; for (int i = 0; i < resolutions.Length; i++) resolutionsStrings [i] = resolutions [i].ToString (); myTarget = new SerializedObject (target); layerMask = myTarget.FindProperty ("layerMask"); materials = myTarget.FindProperty ("materials"); }