Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorScriptPicker
繼承: EditorResourcePicker < HBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
Godot 編輯器的控制項,用於選擇節點 Node 的腳本 script 屬性。
說明
與 EditorResourcePicker 類似,這個 Control 節點在編輯器的屬性檢視器面板中使用,但只用於編輯 Node 的 script 屬性。建立包含所有可能子型別的新資源的預設選項 被替換為打開“附加節點腳本”對話方塊的專用按鈕。可以與 EditorInspectorPlugin 一起使用以重新建立相同的行為。
注意:你必須設定 script_owner 才能讓自訂的本文功能表專案發揮作用。
屬性
屬性說明
持有被編輯資源的腳本屬性的所有者 Node。