コード例 #1
0
        private static string[] OnWillSaveAssets(string[] paths)
        {
            EditorApplication.delayCall += () =>
            {
                foreach (var path in paths)
                {
                    SmartNetIdentityManager.Add(path);
                }

                IdentityLibrary.RemoveNullReferences();
            };

            return(paths);
        }
コード例 #2
0
        private static AssetMoveResult OnWillMoveAsset(string fromPath, string toPath)
        {
            if (SmartNetIdentityManager.LastKnownPath == fromPath)
            {
                SmartNetIdentityManager.SetLastKnownPath(toPath);
            }

            EditorApplication.delayCall += () =>
            {
                SmartNetIdentityManager.Add(fromPath);
                SmartNetIdentityManager.Add(toPath);
            };

            return(AssetMoveResult.DidNotMove);
        }
コード例 #3
0
 private static void OnWillCreateAsset(string assetPath)
 {
     EditorApplication.delayCall += () => { SmartNetIdentityManager.Add(assetPath); };
 }