Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     DrawPropertiesExcluding(serializedObject, "languages", "CSVFiles", "csvDatas");
     if (GUILayout.Button("Open Editor Window"))
     {
         LocalisationDataEditor.Open((LocalisationData)target);
     }
 }
Esempio n. 2
0
        public static void Open(LocalisationData localisationData)
        {
            // Get existing open window or if none, make a new one:
            LocalisationDataEditor window = (LocalisationDataEditor)GetWindow(typeof(LocalisationDataEditor));

            window.LocalisationData = localisationData;
            window.serializedObject = new SerializedObject(localisationData);
            window.Show();
        }
Esempio n. 3
0
        public static bool OpenEditor(int instanceId, int line)
        {
            LocalisationData obj = EditorUtility.InstanceIDToObject(instanceId) as LocalisationData;

            if (obj == null)
            {
                return(false);
            }

            LocalisationDataEditor.Open(obj);
            return(true);
        }