Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created July 5, 2018 16:23
Show Gist options
  • Save todorok1/bfb5e82b4db2d0763dc7a1bc065a4efb to your computer and use it in GitHub Desktop.
Save todorok1/bfb5e82b4db2d0763dc7a1bc065a4efb to your computer and use it in GitHub Desktop.
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