AlwaysFormatsSelfAttribute class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class AlwaysFormatsSelfAttribute : Attribute, _Attribute
Use this attribute to specify that a type that implements the Sirenix.Serialization.ISelfFormatter interface should *always* format itself regardless of other formatters being specified.

This means that the interface will be used to format all types derived from the type that is decorated with this attribute, regardless of custom formatters for the derived types.

  • System.Object
  • System.Attribute
  • AlwaysFormatsSelfAttribute
See Also
  • System.Attribute


public AlwaysFormatsSelfAttribute()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.