void DrawExtraInspector() { var syncObj = target as SynchronizedObject; SynchronizerEditorUtility.ReadOnlyTextField("Sync ID", syncObj.id); if (syncObj.isOverridePrefab) { ResourcePathWatcher.Update("prefab"); var index = ResourcePathWatcher.PathIndexOf("prefab", syncObj.prefabPath); var selectedIndex = EditorGUILayout.Popup("Prefab Path", index, ResourcePathWatcher.GetPathList("prefab")); if (index != selectedIndex) { syncObj.prefabPath = ResourcePathWatcher.GetPath("prefab", selectedIndex); } } else { SynchronizerEditorUtility.ReadOnlyTextField("Prefab Path", syncObj.prefabPath); } }
void DrawComponentId() { var component = target as SynchronizedComponent; SynchronizerEditorUtility.ReadOnlyTextField("Component ID", component.id); }