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)384, AllowMultiple = False, Inherited = True)]
public sealed class MultiLinePropertyAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.5.0

Constructors

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

Properties

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

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 { get; set; }
}