Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

1/4
Component Names integrates seamlessly with the Inspector and makes it possible to rename components.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2021.3.45f1
兼容
兼容
兼容
描述

Ever had trouble distinguishing multiple colliders on the same GameObject from each other?


Ever wished you could rename that generic "Event Trigger" component to something a little more descriptive like "On Click Open Settings"?


What if you could attach little notes to your components to provide some clarifying context?


Wouldn't it be great if you could see the current state of that "Health" component right in the title without having to unfold it?


Now you can!


Component Names integrates seamlessly with the Inspector and makes it possible to rename components at will as if it was a native feature.


Features

  • Select a component's header and press F2 to start renaming it (or select "Rename" from the context menu if your keyboard is broken).
  • Default name is shown in parentheses after the custom name by default.
  • Custom component names can be seen in Object fields.
  • Custom component names can be seen in UnityEvent dropdowns.
  • See a summary description of components when mouseovering their header.
  • Give custom tooltips to components.
  • All custom name data is fully stripped from builds.

Features For Coders

  • Get component names in code using Component.GetName (great for debugging!).
  • Generate component names from their current state by calling Component.SetName in OnValidate.
  • Make Component.name and Component.ToString return custom component names by deriving from custom base class.

Highly Compatible

Compatible with Odin Inspector, Power Inspector, and any custom editors you might have.



| Forum |

技术细节

Component Names

  • Select a component's header in the Inspector and press F2 to start renaming it (or select "Rename" from the context menu).
  • Default name is shown in parentheses after the custom name by default.
  • Add a custom suffix after the default name by typing "(suffix)".
  • Give a custom name and suffix by typing "Name (suffix)".
  • Give a custom name without default name suffix by typing "Name ()".
  • Custom component names are shown in Object fields and UnityEvent fields.
  • All custom name data is fully stripped from builds.

Component Tooltips

  • Give a custom tooltip by typing "Name | Tooltip".
  • When a component class has summary documentation it is automatically shown as a tooltip when its header is mouseovered in the Inspector.

Features For Coders

  • Extension methods component.GetName and component.SetName make it simple to get or set component names in code as well.
  • Easily change Component.name and Component.ToString() to return the component's name by extending custom base class - or by overriding them yourself with just a few lines of code.

Component Names

(23)
159 users have favourite this asset
(159)
$20
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
587.2 KB
最新版本
1.2.1
最新发布日期
2024年12月16日
原始 Unity 版本
2021.3.45
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR