protected override void Initialize()
        {
            var parent = Property.ParentValueProperty;

            if (parent == null)
            {
                parent = Property.Tree.SecretRootProperty;
            }

            PortResolver = parent.ChildResolver as INodePortResolver;
            NodePortInfo = PortResolver.GetNodePortInfo(Property.Name);
            CanFold      = Property.GetAttribute <DontFoldAttribute>() == null;
            DrawValue    = true;
        }
Пример #2
0
        protected override void Initialize()
        {
            var parent = Property.ParentValueProperty;

#if ODIN_INSPECTOR_3
            if (parent == null)
            {
                parent = Property.Tree.RootProperty;
            }
#else
            if (parent == null)
            {
                parent = Property.Tree.SecretRootProperty;
            }
#endif

            PortResolver     = parent.ChildResolver as INodePortResolver;
            PortListResolver = Property.ChildResolver as IDynamicDataNodePropertyPortResolver;
            NodePortInfo     = PortResolver.GetNodePortInfo(Property.Name);
            CanFold          = Property.GetAttribute <DontFoldAttribute>() == null;
            DrawValue        = true;
        }