using System.Collections; using System.Collections.Generic; using UnityEngine; public class ToolTipsElement : MonoBehaviour { public string toolName; [ContextMenu("获取当前模型名称")] private void GetModelName() { toolName = this.gameObject.name; } }