Class AssetPartContainedAttribute
- Namespace
- Stride.Core.Assets.Serializers
- Assembly
- Stride.Core.Assets.dll
Changes rules on what types can be naturally contained inside a given member. All other types will be serialized as references.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class AssetPartContainedAttribute : Attribute
- Inheritance
-
AssetPartContainedAttribute
- Inherited Members
Constructors
AssetPartContainedAttribute(params Type[])
Initializes a new instance of the AssetPartContainedAttribute.
public AssetPartContainedAttribute(params Type[] containedTypes)
Parameters
containedTypes
Type[]The collection of asset part types that are naturally contained in the member having this attribute.
Properties
ContainedTypes
Gets the types of asset part that will still be fully serialized if contained in a part of the member having this attribute.
public Type[] ContainedTypes { get; }
Property Value
- Type[]