diff --git a/src/.editorconfig b/src/.editorconfig new file mode 100644 index 0000000..bddcb96 --- /dev/null +++ b/src/.editorconfig @@ -0,0 +1,4 @@ +[*.cs] + +# CS1591: Missing XML comment for publicly visible type or member +dotnet_diagnostic.CS1591.severity = silent diff --git a/src/XRSharp.CommunityToolkit.Networked/NetworkedScene.cs b/src/XRSharp.CommunityToolkit.Networked/NetworkedScene.cs index 43e2a80..ef67388 100644 --- a/src/XRSharp.CommunityToolkit.Networked/NetworkedScene.cs +++ b/src/XRSharp.CommunityToolkit.Networked/NetworkedScene.cs @@ -33,7 +33,7 @@ public class NetworkedScene : RootComponent /// /// Unique room name. Can be multiple per app. Spaces are not allowed. - /// There can be multiple rooms per app and clients can only connect to clients in the same app & room. + /// There can be multiple rooms per app and clients can only connect to clients in the same app and room. /// public string Room { get; set; } = "default"; @@ -98,6 +98,8 @@ protected override void Init() Interop.ExecuteJavaScriptVoid($@" const template = document.getElementById('{AvatarTemplateId}'); const el = {Avatar.JsElement}.cloneNode(true); +if ({Audio.ToLowerString()}) + el.setAttribute('networked-audio-source', ''); template.content.appendChild(el); "); panel.Children.Remove(Avatar); diff --git a/src/XRSharp.CommunityToolkit.Networked/XRSharp.CommunityToolkit.Networked.csproj b/src/XRSharp.CommunityToolkit.Networked/XRSharp.CommunityToolkit.Networked.csproj index 6418650..55274c8 100644 --- a/src/XRSharp.CommunityToolkit.Networked/XRSharp.CommunityToolkit.Networked.csproj +++ b/src/XRSharp.CommunityToolkit.Networked/XRSharp.CommunityToolkit.Networked.csproj @@ -26,6 +26,7 @@ + diff --git a/src/XRSharp.CommunityToolkit.sln b/src/XRSharp.CommunityToolkit.sln index 31ea5dc..b7521c1 100644 --- a/src/XRSharp.CommunityToolkit.sln +++ b/src/XRSharp.CommunityToolkit.sln @@ -5,9 +5,14 @@ VisualStudioVersion = 17.9.34310.174 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XRSharp.CommunityToolkit.Networked", "XRSharp.CommunityToolkit.Networked\XRSharp.CommunityToolkit.Networked.csproj", "{A14AF71E-E150-4F35-8FA5-404F6120081B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XRSharp.CommunityToolkit.Browser", "XRSharp.CommunityToolkit\XRSharp.CommunityToolkit.Browser\XRSharp.CommunityToolkit.Browser.csproj", "{88B7BB0E-F737-4761-9423-BD629184D0A3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XRSharp.CommunityToolkit.Browser", "XRSharp.CommunityToolkit\XRSharp.CommunityToolkit.Browser\XRSharp.CommunityToolkit.Browser.csproj", "{88B7BB0E-F737-4761-9423-BD629184D0A3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XRSharp.CommunityToolkit", "XRSharp.CommunityToolkit\XRSharp.CommunityToolkit\XRSharp.CommunityToolkit.csproj", "{999CB164-4178-47AA-A3AF-548DD8A1588B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XRSharp.CommunityToolkit", "XRSharp.CommunityToolkit\XRSharp.CommunityToolkit\XRSharp.CommunityToolkit.csproj", "{999CB164-4178-47AA-A3AF-548DD8A1588B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B4133832-4382-4ED6-8641-FBA844D6538D}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/XRSharp.CommunityToolkit/XRSharp.CommunityToolkit/Examples/Networked/Networked.xaml b/src/XRSharp.CommunityToolkit/XRSharp.CommunityToolkit/Examples/Networked/Networked.xaml index f4ce22a..f9f1fbd 100644 --- a/src/XRSharp.CommunityToolkit/XRSharp.CommunityToolkit/Examples/Networked/Networked.xaml +++ b/src/XRSharp.CommunityToolkit/XRSharp.CommunityToolkit/Examples/Networked/Networked.xaml @@ -9,7 +9,7 @@ - +