From a78f1de871d9c6d61baeb8affac4b649281a20bf Mon Sep 17 00:00:00 2001 From: talha-trili Date: Thu, 17 Oct 2024 13:40:20 +0100 Subject: [PATCH] fix: airgap webgl template name fixed unity uses "PROJECT:" prefix for custom webgl templates --- Runtime/Scripts/Editor/TezosEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Scripts/Editor/TezosEditor.cs b/Runtime/Scripts/Editor/TezosEditor.cs index e491f8f..7567d6a 100644 --- a/Runtime/Scripts/Editor/TezosEditor.cs +++ b/Runtime/Scripts/Editor/TezosEditor.cs @@ -16,7 +16,7 @@ public class TezosEditor : EditorWindow, ITezosEditor private const string SourceStreamingAssetsPath = "Packages/com.trilitech.tezos-unity-sdk/WebGLFrontend/output/StreamingAssets"; private const string SourceWebGLTemplatesPath = "Packages/com.trilitech.tezos-unity-sdk/WebGLFrontend/output/WebGLTemplates"; private const string DestinationAssetsPath = "Assets"; - private const string WebGLTemplateName = "Airgap"; + private const string WebGLTemplateName = "PROJECT:Airgap"; [MenuItem("Tezos/Setup Configs")] public static void SetupTezosConfigs() @@ -32,7 +32,7 @@ public void SetupConfigs() CopyAndMergeFolders(SourceWebGLTemplatesPath, Path.Combine(DestinationAssetsPath, "WebGLTemplates")); SetWebGLTemplate(WebGLTemplateName); CreateTezosConfigs(); - + AssetDatabase.SaveAssets(); AssetDatabase.Refresh();