Skip to content

Commit cae20c4

Browse files
committed
Update
1 parent 37e34d1 commit cae20c4

26 files changed

+1019
-38
lines changed

HuntroxGames/DiscordWebhookUnity/Example.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HuntroxGames/DiscordWebhookUnity/Example/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using UnityEditor;
2+
using UnityEngine;
3+
4+
namespace HuntroxGames.Utils.Editor
5+
{
6+
[CustomEditor(typeof(WebhookSendExample))]
7+
public class WebhookSendExampleEditor : UnityEditor.Editor
8+
{
9+
10+
public override void OnInspectorGUI()
11+
{
12+
base.OnInspectorGUI();
13+
if (GUILayout.Button("Send Webhook"))
14+
{
15+
var webhookSendExample = (WebhookSendExample)target;
16+
webhookSendExample.Send();
17+
}
18+
19+
if (GUILayout.Button("Send Webhook from Resources Folder"))
20+
{
21+
var webhookSendExample = (WebhookSendExample)target;
22+
webhookSendExample.SendWebHook();
23+
}
24+
25+
if (GUILayout.Button("Webhook with Texture2D"))
26+
{
27+
var webhookSendExample = (WebhookSendExample)target;
28+
webhookSendExample.SendWebHookWithTexture2D();
29+
}
30+
}
31+
}
32+
}

HuntroxGames/DiscordWebhookUnity/Example/Editor/WebhookSendExampleEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HuntroxGames/DiscordWebhookUnity/Example/Resources.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HuntroxGames/DiscordWebhookUnity/Example/Resources/Files.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

HuntroxGames/DiscordWebhookUnity/Example/Resources/Files/ExampleJpegResourceFile.jpeg.meta

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

HuntroxGames/DiscordWebhookUnity/Example/Resources/Files/ExampleJpgResourceFile.jpg.meta

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)