-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Settings] - Add model property on settings. [Script Generator Window] - Fix error FileName and SavePath doesn't insert value.
- Loading branch information
Showing
8 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace BKK.ChatGPTEditor | ||
{ | ||
[CustomEditor(typeof(ChatGPTSettings))] | ||
public class ChatGPTSettingsEditor : Editor | ||
{ | ||
private ChatGPTSettings chatGptSettings; | ||
private SerializedProperty m_OpenAiApiKey; | ||
private SerializedProperty m_Model; | ||
private SerializedProperty m_CreateAssetPath; | ||
|
||
private void OnEnable() | ||
{ | ||
chatGptSettings = target as ChatGPTSettings; | ||
|
||
m_OpenAiApiKey = serializedObject.FindProperty("openAiApiKey"); | ||
m_Model = serializedObject.FindProperty("model"); | ||
m_CreateAssetPath = serializedObject.FindProperty("createAssetPath"); | ||
} | ||
|
||
public override void OnInspectorGUI() | ||
{ | ||
EditorGUILayout.PropertyField(m_OpenAiApiKey); | ||
EditorGUILayout.PropertyField(m_Model, new GUIContent("Model( Current text-davinci-003 Only )")); | ||
EditorGUILayout.PropertyField(m_CreateAssetPath); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters