Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Runtime/Schemas/Object/ArenaHandLeftJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,23 @@ public class ArenaHandLeftJson
{
public string object_type = "handLeft";

public string url { get; set; }
public string dep { get; set; }
private static string defUrl = null;
[JsonProperty(PropertyName = "url")]
[Tooltip("Path to the hand controller 3D model.")]
public string url = defUrl;
public bool ShouldSerializeurl()
{
return (url != defUrl);
}

private static string defDep = null;
[JsonProperty(PropertyName = "dep")]
[Tooltip("User id this hand belongs to.")]
public string dep = defDep;
public bool ShouldSerializedep()
{
return (dep != defDep);
}

[JsonProperty(PropertyName = "parent")]
[Tooltip("Parent's object_id. Child objects inherit attributes of their parent, for example scale and translation.")]
Expand Down
19 changes: 17 additions & 2 deletions Runtime/Schemas/Object/ArenaHandRightJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,23 @@ public class ArenaHandRightJson
{
public string object_type = "handRight";

public string url { get; set; }
public string dep { get; set; }
private static string defUrl = null;
[JsonProperty(PropertyName = "url")]
[Tooltip("Path to the hand controller 3D model.")]
public string url = defUrl;
public bool ShouldSerializeurl()
{
return (url != defUrl);
}

private static string defDep = null;
[JsonProperty(PropertyName = "dep")]
[Tooltip("User id this hand belongs to.")]
public string dep = defDep;
public bool ShouldSerializedep()
{
return (dep != defDep);
}

[JsonProperty(PropertyName = "parent")]
[Tooltip("Parent's object_id. Child objects inherit attributes of their parent, for example scale and translation.")]
Expand Down