MultiLinePropertyAttribute

MultiLineProperty is used on any string property

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

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)32767, AllowMultiple = False, Inherited = True)]
public sealed class MultiLinePropertyAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Fields

Return Type Definition Description
int Lines The number of lines for the text box.

Constructors

Definition Description
MultiLinePropertyAttribute(int) Makes a multiline textbox for editing strings.

Example

The following example shows how MultiLineProperty is applied to properties.

public class MyComponent : MonoBehaviour
{
	[MultiLineProperty]
	public string MyString;

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