using UnityEngine; using UnityEngine.Rendering; using UnityEditor; using UnityEditor.SceneManagement; using System; using System.IO; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; [CustomEditor(typeof(LightmapParameters), true)] [CanEditMultipleObjects] public class ftExtendLightmapParameters : Editor { Editor defaultEditor; //LightmapParameters lp; SerializedProperty spBakedTag; bool tagOverride = false; int prevTag = -999; int tagDataIndex = -1; static bool showBakeryOnly = false; static ftGlobalStorage gstorage; void ValidateTagOverride() { tagOverride = false; int curTag = spBakedTag.intValue; if (gstorage == null) gstorage = ftRenderLightmap.FindGlobalStorage(); var tagTable = gstorage.tagOverrides; if (tagTable == null) tagTable = gstorage.tagOverrides = new List(); for(int i=0; i