Method OnlyParents
OnlyParents(Type)
This rule will only add the variant to parent entities with this component type. Children with this component will remain DontSerializeVariant (which is the default for children). This is the recommended approach.
Declaration
public static DefaultVariantSystemBase.Rule OnlyParents(Type variantForParentOnly)
Parameters
Type | Name | Description |
---|---|---|
Type | variantForParentOnly |
Returns
Type | Description |
---|---|
DefaultVariantSystemBase.Rule |