public void Awake() { if (_assetComment == null) { _assetComment = new AssetComment(); _assetComment.onChageComment += SceneView.RepaintAll; } if (AssetCommentWindow.HasOpenInstances <AssetCommentWindow>()) { CreateCommentWindow(); } _isDispSceneView = EditorPrefs.GetBool(DispFlagSaveKey, false); _assetComment.Load(target); }
private static void CreateCommentWindow() { _commentWindow = AssetCommentWindow.GetWindow(); _commentWindow.SetAssetComment(_assetComment); }