Skip to content

Commit

Permalink
fix: airgap webgl template name fixed
Browse files Browse the repository at this point in the history
unity uses "PROJECT:" prefix for custom webgl templates
  • Loading branch information
talha-trili committed Oct 17, 2024
1 parent 92e706e commit a78f1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/Scripts/Editor/TezosEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -32,7 +32,7 @@ public void SetupConfigs()
CopyAndMergeFolders(SourceWebGLTemplatesPath, Path.Combine(DestinationAssetsPath, "WebGLTemplates"));
SetWebGLTemplate(WebGLTemplateName);
CreateTezosConfigs();

AssetDatabase.SaveAssets();
AssetDatabase.Refresh();

Expand Down

0 comments on commit a78f1de

Please sign in to comment.