Private bool dontRemapExtractedMaterials = true Private bool remappedMaterialPropertiesMustMatch = true Private bool remappedMaterialNamesMustMatch = false If ( remapTo & onRemapConfirmed != null )įor ( int i = 0 i modelData = new List ( 16 ) SetBool ( "BEM_SkipIgnoredMats ", skipIgnoredMaterials ) Toggle ( "Skip Ignored Materials ", skipIgnoredMaterials ) ĮditorPrefs. ObjectField ( "Remap To ", remapTo, typeof ( Material ), false ) as Material Allow drag & dropping materials to array Label ( "Remap From (drag & drop here) " ) If 'Remap From' is empty, all materials will be remapped to 'Remap To'. LabelField ( "This will find all materials that point to 'Remap From' and remap them to 'Remap To'. GetBool ( "BEM_SkipIgnoredMats ", true ) titleContent = new GUIContent ( "Remap All. Action, Material, bool > onRemapConfirmed )īuttonRect. Public static void ShowAt ( Rect buttonRect, Vector2 size, System. Action, Material, bool > onRemapConfirmed Private class RemapAllPopup : EditorWindow Public class BatchExtractMaterials : EditorWindow
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |