Exemple #1
0
        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);
        }
Exemple #2
0
 private static void CreateCommentWindow()
 {
     _commentWindow = AssetCommentWindow.GetWindow();
     _commentWindow.SetAssetComment(_assetComment);
 }