Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SpaceAttributeを使って領域の区切りを分かりやすくする
public class HeaderCheck : MonoBehaviour {
// ヘッダー前のスペース
const float PreHeader = 20f;
// ヘッダー後のスペース
const float PostHeader = 20f;
// 領域間のスペース
const float InterRegion = 20f;
public string playerName = "roto";
[Space(PreHeader)]
[Header("-----------------------------")]
[Header("デザイナーの四条さん担当")]
[Header("-----------------------------")]
[Space(PostHeader)]
public Color characterColor = new Color();
public Color charactersWeaponColor = new Color();
[Space(InterRegion)]
[Space(PreHeader)]
[Header("-----------------------------")]
[Header("バトルプランナーの我那覇さん担当")]
[Header("-----------------------------")]
[Space(PostHeader)]
public int level = 41;
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.