-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The attribute [SOVariant] only acts as tagger, which is then looked for in SOVariantAttributeProcessor:OdinPropertyProcessor -> ProcessMemberProperties, where the first line reads:
if(!Property.Attributes.Select(attribute => attribute.GetType()).Contains(typeof(SOVariantAttribute)))
return;The problem with this is that SOVariantAttributeProcessor is thus set to be called for every ScriptableObject:
public class SOVariantAttributeProcessor<T> : OdinPropertyProcessor<T> where T : ScriptableObjectThere is probably a way to directly call SOVariantAttributeProcessor from the attribute, but I haven't found how.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request