うにてぃブログ

UnityやUnreal Engineの記事を書いていきます

【Unity】EditorStyles で使えるスキン一覧 【Unity2019.3未満】

f:id:hacchi_man:20200331233616p:plain

生成コード

下記には記述していないが * EditorStyles.toolbarSearchField * EditorStyles.foldoutHeader * EditorStyles.foldoutHeaderIcon が2019.1~使えるようになっている

private void OnGUI()
{
    EditorGUILayout.LabelField("label", EditorStyles.label);
    EditorGUILayout.LabelField("miniLabel", EditorStyles.miniLabel);
    EditorGUILayout.LabelField("largeLabel", EditorStyles.largeLabel);
    EditorGUILayout.LabelField("boldLabel", EditorStyles.boldLabel);
    EditorGUILayout.LabelField("miniBoldLabel", EditorStyles.miniBoldLabel);
    EditorGUILayout.LabelField("centeredGreyMiniLabel", EditorStyles.centeredGreyMiniLabel);
    EditorGUILayout.LabelField("wordWrappedMiniLabel", EditorStyles.wordWrappedMiniLabel);
    EditorGUILayout.LabelField("wordWrappedLabel", EditorStyles.wordWrappedLabel);
    EditorGUILayout.LabelField("whiteLabel", EditorStyles.whiteLabel);
    EditorGUILayout.LabelField("whiteMiniLabel", EditorStyles.whiteMiniLabel);
    EditorGUILayout.LabelField("whiteLargeLabel", EditorStyles.whiteLargeLabel);
    EditorGUILayout.LabelField("whiteBoldLabel", EditorStyles.whiteBoldLabel);
    EditorGUILayout.LabelField("radioButton", EditorStyles.radioButton);
    EditorGUILayout.LabelField("miniButton", EditorStyles.miniButton);
    using (new EditorGUILayout.HorizontalScope())
    {
        EditorGUILayout.LabelField("miniButtonLeft", EditorStyles.miniButtonLeft);
        EditorGUILayout.LabelField("miniButtonMid", EditorStyles.miniButtonMid);
        EditorGUILayout.LabelField("miniButtonRight", EditorStyles.miniButtonRight);
    }
    EditorGUILayout.LabelField("miniPullDown", EditorStyles.miniPullDown);
    EditorGUILayout.LabelField("textField", EditorStyles.textField);
    EditorGUILayout.LabelField("textArea", EditorStyles.textArea);
    EditorGUILayout.LabelField("miniTextField", EditorStyles.miniTextField);
    EditorGUILayout.LabelField("numberField", EditorStyles.numberField);
    EditorGUILayout.LabelField("popup", EditorStyles.popup);
    EditorGUILayout.LabelField("structHeadingLabel", EditorStyles.structHeadingLabel);
    EditorGUILayout.LabelField("objectField", EditorStyles.objectField);
    EditorGUILayout.LabelField("objectFieldThumb", EditorStyles.objectFieldThumb);
    EditorGUILayout.LabelField("objectFieldMiniThumb", EditorStyles.objectFieldMiniThumb);
    EditorGUILayout.LabelField("colorField", EditorStyles.colorField);
    EditorGUILayout.LabelField("layerMaskField", EditorStyles.layerMaskField);
    EditorGUILayout.LabelField("toggle", EditorStyles.toggle);
    EditorGUILayout.LabelField("foldout", EditorStyles.foldout);
    EditorGUILayout.LabelField("foldoutPreDrop", EditorStyles.foldoutPreDrop);
    EditorGUILayout.LabelField("toggleGroup", EditorStyles.toggleGroup);
    EditorGUILayout.LabelField("toolbar", EditorStyles.toolbar);
    GUILayout.Space(5);
    using (new EditorGUILayout.HorizontalScope(EditorStyles.toolbar))
    {
        EditorGUILayout.LabelField("toolbarButton", EditorStyles.toolbarButton);
        EditorGUILayout.LabelField("toolbarPopup", EditorStyles.toolbarPopup);
        EditorGUILayout.LabelField("toolbarDropDown", EditorStyles.toolbarDropDown);
    }
    GUILayout.Space(5);
    using (new EditorGUILayout.HorizontalScope(EditorStyles.toolbar))
    {
        EditorGUILayout.LabelField("toolbarTextField", EditorStyles.toolbarTextField);
    }
    EditorGUILayout.LabelField("inspectorDefaultMargins", EditorStyles.inspectorDefaultMargins);
    EditorGUILayout.LabelField("inspectorFullWidthMargins", EditorStyles.inspectorFullWidthMargins);
    EditorGUILayout.LabelField("helpBox", EditorStyles.helpBox);
}