言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Editor.GetInfoString

public function GetInfoString(): string;

Description

プレビューにアセットの情報を表示するにはこのメソッドを使用します

使用するには、HasPreviewGUIとOnPreviewGUIを実装してオーバライドする必要があります。 デフォルトでは無効になっており空文字を返します 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.