ToolTipsElement.cs 291 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ToolTipsElement : MonoBehaviour
  5. {
  6. public string toolName;
  7. [ContextMenu("获取当前模型名称")]
  8. private void GetModelName()
  9. {
  10. toolName = this.gameObject.name;
  11. }
  12. }