예제 #1
0
        public UnitySceneMemo GetMemo(GameObject obj)
        {
            var            instanceId = obj.GetInstanceID();
            UnitySceneMemo memo       = getMemoFromCache(instanceId);

            if (memo == null)
            {
                var localIdentifierInFile = UnitySceneMemoHelper.GetLocalIdentifierInFile(obj);
                memo = GetMemo(localIdentifierInFile);
                if (memo != null)
                {
                    memo.Initialize(instanceId);
                    CachedMemo.Add(instanceId, memo);
                }
            }
            return(memo);
        }
 public void Initialize(UnitySceneMemo memo)
 {
     Memo = memo;
     Memo.Initialize(Memo.InstanceId);
     Memo.IsEdit = false;
 }