Odin has a dedicated attribute overview with examples

MultiLinePropertyAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false, Inherited = true)]
public sealed class MultiLinePropertyAttribute : Attribute, _Attribute

MultiLineProperty is used on any string property.

Use this to allow users to edit strings in a multi line textbox.

  • System.Object
  • System.Attribute
  • MultiLinePropertyAttribute

MultiLineProperty is similar to Unity's UnityEngine.MultilineAttribute but can be applied to both fields and properties.


The following example shows how MultiLineProperty is applied to properties.

public class MyComponent : MonoBehaviour
	public string MyString;

	[ShowInInspector, MultiLineProperty(10)]
	public string PropertyString;


Makes a multiline textbox for editing strings.
public MultiLinePropertyAttribute(int lines = 3)
System.Int32 lines

The number of lines for the text box.


The number of lines for the text box.
public int Lines

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.