Exemple #1
0
        public static GraphReference New(IGraphRoot root, IEnumerable <IGraphParentElement> parentElements, bool ensureValid)
        {
            if (!ensureValid && !IsValidRoot(root))
            {
                return(null);
            }

            var reference = new GraphReference();

            reference.Initialize(root, parentElements, ensureValid);
            reference.Hash();
            return(reference);
        }
Exemple #2
0
        public static GraphReference New(UnityObject rootObject, IEnumerable <Guid> parentElementGuids, bool ensureValid)
        {
            if (!ensureValid && !IsValidRoot(rootObject))
            {
                return(null);
            }

            var reference = new GraphReference();

            reference.Initialize(rootObject, parentElementGuids, ensureValid);
            reference.Hash();
            return(reference);
        }
Exemple #3
0
        public static GraphReference New(IGraphRoot root, bool ensureValid)
        {
            if (!ensureValid && !IsValidRoot(root))
            {
                return(null);
            }

            var reference = new GraphReference();

            reference.Initialize(root);
            reference.Hash();
            return(reference);
        }