Version: 2021.3

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); } }