Skip to content

Commit

Permalink
updated sample (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes authored Nov 22, 2024
1 parent 6744ed7 commit bac420f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/create-sentry-cli-options.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ MonoBehaviour:
<Auth>k__BackingField: $Env:SENTRY_AUTH_TOKEN
<Organization>k__BackingField: sentry-sdks
<Project>k__BackingField: sentry-unity
<IgnoreCliErrors>k__BackingField: 0
<CliOptionsConfiguration>k__BackingField: {fileID: 11400000, guid: 8c8107e4a8950413eb741aa6d47c3b73,
type: 2}
"@

$assetPath = "$PSScriptRoot/../samples/unity-of-bugs/Assets/Plugins/Sentry/"
Expand Down
4 changes: 4 additions & 0 deletions src/Sentry.Unity.Editor/SentryCliOptionsEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public override void OnInspectorGUI()
EditorGUILayout.TextField("Org-Slug", cliOptions.Organization);
EditorGUILayout.TextField("Project Name", cliOptions.Project);

EditorGUILayout.LabelField("Options Configuration", EditorStyles.boldLabel);
EditorGUILayout.ObjectField("Runtime Configuration", cliOptions.CliOptionsConfiguration,
typeof(SentryCliOptionsConfiguration), false);

EditorGUI.EndDisabledGroup();
}
}

0 comments on commit bac420f

Please sign in to comment.