Beispiel #1
0
        public FR2_SceneRef(int depth, Object target) : base(0, depth, null, null)
        {
            component  = target;
            this.depth = depth;
            isSceneRef = true;
            var obj = target as GameObject;

            if (obj == null)
            {
                var com = target as Component;
                if (com != null)
                {
                    obj = com.gameObject;
                }
            }

            scenePath = FR2_Unity.GetGameObjectPath(obj, false);
            if (component == null)
            {
                return;
            }

            sceneFullPath = scenePath + component.name;
            targetType    = component.GetType().Name;
        }