private void DrawVariables()
        {
            EditorGUILayout.BeginVertical(EditorStyles.helpBox);

            EditorGUILayout.LabelField("Available variables", EditorStyles.boldLabel);
            KLEditorUtils.DrawUILine();

            m_variableScrollPosition = GUILayout.BeginScrollView(m_variableScrollPosition);
            foreach (var variable in KLEditorCore.AvailableVariables)
            {
                KLEditorUtils.DrawVariable(variable);
            }

            EditorGUILayout.EndScrollView();

            EditorGUILayout.EndVertical();
        }
예제 #2
0
 private void Draw(KLVariableDefinition variable)
 {
     KLEditorUtils.DrawVariable(variable);
 }