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); }
public void SetAssetComment(AssetComment assetComment) { this._assetComment = assetComment; this._assetComment.onChageComment += this.Repaint; this.Repaint(); }