Skip to content

Commit 6ccc052

Browse files
committed
refactor: model wasm constructor specific
1 parent 275f8a6 commit 6ccc052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Dojo/Runtime/Torii/Model.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ public Struct(string name, Dictionary<string, object> members)
4343
public string Name { get; }
4444
public Dictionary<string, object> Members { get; }
4545

46+
#if UNITY_WEBGL && !UNITY_EDITOR
4647
public Model(string name, Dictionary<string, WasmValue> members)
4748
{
4849
Name = name;
4950

5051
Members = members.ToDictionary(k => k.Key, v => HandleWasmValue(v.Value));
5152
}
53+
#else
5254

5355
public Model(string name, Dictionary<string, object> members)
5456
{

0 commit comments

Comments
 (0)