Skip to content

Commit

Permalink
1.1.8 fix naming and add object DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Oct 4, 2024
1 parent a74f5be commit 3ee95b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Runtime/OSCQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private void wsSocketError(WSQuery query)

private void wsMessageReceived(WSQuery query, string message)
{
Debug.Log("Message received " + message);
//Debug.Log("Message received " + message);
JSONObject o = new JSONObject(message);
if (o.IsObject)
{
Expand Down Expand Up @@ -505,6 +505,8 @@ JSONObject getObjectData(GameObject go, string baseAddress = "")
}

o.SetField("CONTENTS", co);
o.SetField("DESCRIPTION", getNiceName(go.name));




Expand Down Expand Up @@ -661,7 +663,7 @@ JSONObject getPropObject(Type type, object value, RangeAttribute range = null, b

string SanitizeName(string niceName)
{
return niceName.Replace(" ", "-").Replace("(", "").Replace(")", "");
return niceName.Replace(" ", "_").Replace("(", "").Replace(")", "");
}

bool checkFilteredObject(GameObject go)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"repository": "github:benkper/Unity-OSCQuery",
"unity": "2023.2",
"unityRelease": "20f1",
"version": "1.1.7"
"version": "1.1.8"
}

0 comments on commit 3ee95b0

Please sign in to comment.