Beispiel #1
0
        /// <inheritdoc />
        protected override void Update(SerializedProperty property)
        {
            // Update the targeted drawer
            base.Update(property);

            // Assign the property and sub-properties
            this.property     = property;
            componentProperty = property.FindPropertyRelative("_component");
            nameProperty      = property.FindPropertyRelative("_name");

            // Fetch the filter
            filter = (FilterAttribute)fieldInfo.GetCustomAttributes(typeof(FilterAttribute), true).FirstOrDefault() ?? DefaultFilter();

            // Find the targets
            targets    = FindTargets();
            targetType = DetermineTargetType();
        }