diff --git a/Runtime/OSCQuery.cs b/Runtime/OSCQuery.cs index daab276..411a971 100644 --- a/Runtime/OSCQuery.cs +++ b/Runtime/OSCQuery.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -370,7 +370,9 @@ JSONObject getObjectData(GameObject go, string baseAddress = "") { string ioName = SanitizeName(info.Name); string fullPath = compAddress + "/" + ioName; + io.SetField("FULL_PATH", fullPath); + io.SetField("DESCRIPTION", getNiceName(info.Name)); ccco.SetField(ioName, io); compInfoMap.Add(fullPath, new CompInfo(comp, info)); } @@ -402,6 +404,7 @@ JSONObject getObjectData(GameObject go, string baseAddress = "") string ioName = SanitizeName(info.Name); string fullPath = compAddress + "/" + ioName; io.SetField("FULL_PATH", fullPath); + io.SetField("DESCRIPTION", getNiceName(info.Name)); ccco.SetField(SanitizeName(info.Name), io); compInfoMap.Add(fullPath, new CompInfo(comp, info)); } @@ -421,6 +424,7 @@ JSONObject getObjectData(GameObject go, string baseAddress = "") { string sName = SanitizeName(p.name); string fullPath = compAddress + "/" + sName; + io.SetField("DESCRIPTION", getNiceName(p.name)); io.SetField("FULL_PATH", fullPath); ccco.SetField(SanitizeName(sName), io); compInfoMap.Add(fullPath, new CompInfo(comp as VisualEffect, p.name, p.type)); @@ -460,6 +464,7 @@ JSONObject getObjectData(GameObject go, string baseAddress = "") string fullPath = compAddress + "/" + ioName; mo.SetField("TYPE", "N"); mo.SetField("FULL_PATH", fullPath); + mo.SetField("DESCRIPTION", getNiceName(info.Name)); ccco.SetField(ioName, mo); compInfoMap.Add(fullPath, new CompInfo(comp, info)); @@ -868,8 +873,12 @@ void sendFeedback(string address, WSQuery query) case "Vector4": { Color color = dataType == "Color" ? (Color)data : (Color)(Vector4)data; - Color oldColor = dataType == "Color" ? (Color)oldData : (Color)(Vector4)oldData; - if (oldData != null && color == (Color)oldColor) return; + + if (oldData != null) + { + Color oldColor = dataType == "Color" ? (Color)oldData : (Color)(Vector4)oldData; + if(color == oldColor) return; + } m.Append(color.r); m.Append(color.g); m.Append(color.b); @@ -994,5 +1003,30 @@ float getFloatArg(object data) { return (data is int) ? (float)(int)data : (float)data; } + + string getNiceName(string name) + { + string niceName = ""; + for (int i = 0; i < name.Length; i++) + { + if (i == 0) + { + niceName += char.ToUpper(name[i]); + } + else if (char.IsUpper(name[i])) + { + if (char.IsLower(name[i - 1])) + { + niceName += " "; + } + niceName += name[i]; + } + else + { + niceName += name[i]; + } + } + return niceName; + } } } \ No newline at end of file diff --git a/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll b/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll new file mode 100644 index 0000000..fb32d53 Binary files /dev/null and b/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll differ diff --git a/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll.meta b/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll.meta new file mode 100644 index 0000000..adb0301 --- /dev/null +++ b/Runtime/Zeroconf/Mono.Zeroconf.Providers.Bonjour/Plugins/x86/dnssd.dll.meta @@ -0,0 +1,52 @@ +fileFormatVersion: 2 +guid: 221367021301a60459a56dacb9cb599c +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: x86 + DefaultValueInitialized: true + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: x86 + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: None + userData: + assetBundleName: + assetBundleVariant: diff --git a/package.json b/package.json index 4946669..2253c85 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "license": "GPL v3", "name": "com.benkuper.oscquery", "repository": "github:benkper/Unity-OSCQuery", - "unity": "2018.3", - "unityRelease": "0f1", - "version": "1.1.4" + "unity": "2023.2", + "unityRelease": "20f1", + "version": "1.1.5" }