Пример #1
0
        /// <summary>
        /// Creates a view for additional properties inside <see cref="NodeModel.PropertyBlock"/>.
        /// Override this to create custom view
        /// </summary>
        public virtual VisualElement CreatePropertiesView()
        {
            var res = new ObjectPropertiesField()
            {
                PropertyBlock = Node.PropertyBlock
            };

            res.Changed += NodePropertyBlockChanged;
            return(res);
        }
Пример #2
0
 /// <summary>
 /// Called when any property inside <see cref="NodeModel.PropertyBlock"/> is changed
 /// </summary>
 /// <param name="changedField">Editor field that was changed</param>
 /// <param name="fieldName">Name of <see cref="NodeModel.PropertyBlock"/> field that was changed</param>
 protected virtual void NodePropertyBlockChanged(ObjectPropertiesField changedField, string fieldName)
 {
 }