편집

다음을 통해 공유


InspectorUIUtility.DrawScriptableFoldout<T> Method

Definition

Draws the contents of a scriptable inline inside a foldout. Depending on if there's an actual scriptable linked, the values will be greyed out or editable in case the scriptable is created inside the serialized object.

public:
generic <typename T>
 where T : UnityEngine::ScriptableObject static bool DrawScriptableFoldout(UnityEditor::SerializedProperty ^ scriptable, System::String ^ description, bool isExpanded);
public static bool DrawScriptableFoldout<T> (UnityEditor.SerializedProperty scriptable, string description, bool isExpanded) where T : UnityEngine.ScriptableObject;
static member DrawScriptableFoldout : UnityEditor.SerializedProperty * string * bool -> bool (requires 'T :> UnityEngine.ScriptableObject)
Public Shared Function DrawScriptableFoldout(Of T As ScriptableObject) (scriptable As SerializedProperty, description As String, isExpanded As Boolean) As Boolean

Type Parameters

T

Parameters

scriptable
UnityEditor.SerializedProperty
description
String
isExpanded
Boolean

Returns

Applies to