コード例 #1
0
        public void SetupPreview(UnassignedBehavior editor)
        {
            TryClearFieldList();

            if (editor == null)
            {
                return;
            }

            var defaultProps = editor.GetDefaultProperties();

            foreach (PropEditor propEditor in defaultProps)
            {
                if (IsRelevantField(propEditor))
                {
                    SpawnField(propEditor);
                }
            }

            SetPreviewSpacerAndOverlay(HasAnyProps());
        }
コード例 #2
0
 public PropEditor[] GetDefaultProperties()
 {
     return(item.GetDefaultProperties());
 }