|
|
|
|
|
|
} |
|
|
|
shadowDatas[idx].format = format; |
|
|
|
shadowDatas[idx].data = data != null ? data : new int[0]; |
|
|
|
UnityEditor.EditorUtility.SetDirty( this ); |
|
|
|
} |
|
|
|
// Load a specific shadow data. Returns null if requested data is not present.
|
|
|
|
public int[] GetShadowData( int shadowDataFormat ) |
|
|
|
|
|
|
m_ShadowData = serializedObject.FindProperty( "shadowData" ); |
|
|
|
m_ShadowDatas = serializedObject.FindProperty( "shadowDatas" ); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnInspectorGUI() |
|
|
|
{ |
|
|
|
base.OnInspectorGUI(); |
|
|
|
|
|
|
UnityEditor.EditorGUI.BeginChangeCheck(); |
|
|
|
m_ShadowRegistry.Draw( ald.gameObject.GetComponent<Light>() ); |
|
|
|
serializedObject.Update(); |
|
|
|
serializedObject.ApplyModifiedProperties(); |
|
|
|
//UnityEditor.EditorUtility.SetDirty( ald ); // <- doesn't work for some reason
|
|
|
|
UnityEditor.EditorUtility.SetDirty( ald ); |
|
|
|
serializedObject.ApplyModifiedProperties(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |