Method OnlyChildren
OnlyChildren(Type)
This rule will only add this variant to child entities with this component. The parent entities with this component will use the default serializer. Note: It is not recommended to serialize child entities as it is relatively slow to serialize them!
Declaration
public static DefaultVariantSystemBase.Rule OnlyChildren(Type variantForChildrenOnly)
Parameters
Type | Name | Description |
---|---|---|
Type | variantForChildrenOnly |
Returns
Type | Description |
---|---|
DefaultVariantSystemBase.Rule |