Skip to content

Instantly share code, notes, and snippets.

@todorok1 todorok1/MultilineCheck.cs
Last active Jul 15, 2018

Embed
What would you like to do?
MultilineAttributeで複数行テキストを表示
public class MultilineCheck : MonoBehaviour {
// publicで宣言
[Multiline]
public string multiline;
// SerializeFieldと並べて使える
[SerializeField][Multiline]
string multiline2;
// コンパイルはできるけどInspectorで警告が表示される
[Multiline]
public int multiInt;
// コンパイルはできるけどInspectorで警告が表示される
[Multiline]
public Vector3 multiVector;
// 行数を指定することができる
[Multiline(7)]
public string multiSevenLine;
// リスト内のstringにも有効
[Multiline]
public List<string> multilineList = new List<string>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.