Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

Editor.GetPreviewTitle

public GUIContent GetPreviewTitle();

Description

Override this method if you want to change the label of the Preview area.

If null is returned the default text "Preview" will be used.

Note: Inspector previews are limited to the primary editor of persistent objects (assets), e.g., GameObjectInspector, MaterialEditor, TextureInspector. This means that it is currently not possible for a component to have its own inspector preview.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答