Seven is the number.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
383 B

using UnityEditor;
namespace LeTai.TrueShadow.Editor
{
[InitializeOnLoad]
class PrefabEventHandler
{
static PrefabEventHandler()
{
PrefabUtility.prefabInstanceUpdated += go =>
{
var shadows = go.GetComponentsInChildren<TrueShadow>();
foreach (var shadow in shadows)
shadow.ApplySerializedData();
};
}
}
}