Version: 2022.1

GUIStyle.imagePosition

切换到手册
public ImagePosition imagePosition ;

描述

GUIContent 的图像和文本的组合方式。

using UnityEngine;

public class ExampleScript : MonoBehaviour { // Prints how image and text is placed. void OnGUI() { Debug.Log(GUI.skin.button.imagePosition); } }