protected static void RemoveObsoleteModifierAsset(BlendModeMaterialsAsset modifierAsset, SkeletonDataAsset skeletonDataAsset) { skeletonDataAsset.skeletonDataModifiers.Remove(modifierAsset); Debug.Log(string.Format("BlendModeMaterialsAsset upgraded to built-in BlendModeMaterials at SkeletonDataAsset '{0}'.", skeletonDataAsset.name), skeletonDataAsset); EditorUtility.SetDirty(skeletonDataAsset); }
protected static void TransferSettingsFromModifierAsset(BlendModeMaterialsAsset modifierAsset, SkeletonDataAsset skeletonDataAsset, TemplateMaterials templateMaterials) { skeletonDataAsset.blendModeMaterials.TransferSettingsFrom(modifierAsset); templateMaterials.multiplyTemplate = modifierAsset.multiplyMaterialTemplate; templateMaterials.screenTemplate = modifierAsset.screenMaterialTemplate; templateMaterials.additiveTemplate = modifierAsset.additiveMaterialTemplate; }