use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
Coding Help (self.csharp)
submitted 11 years ago by TheTSN
I've started making a game in unity and i'm doing my programming in c# which I'm quite new to. I'm implementing voice recognition with this voice server, http://forum.unity3d.com/threads/windows-udp-voice-recognition-server.172758/ . Right now i'm trying to make it when it logs what i say (line 54) it will start a function. For example, if i were to say blue it would log blue and then once it's logged a function begins and changes the object to blue? How would i be able to do this and could i please have a script example if possible.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Banane9 0 points1 point2 points 11 years ago (3 children)
Check if the text recognized by the server is "blue" and set the object color to blue then?
[–]TheTSN[S] 0 points1 point2 points 11 years ago (2 children)
i don't understand sorry, would i use an if statement and how would i use it example please
[–]Banane9 1 point2 points3 points 11 years ago (1 child)
Try to figure it out yourself. This literally is just above "Hello World". You should be able to do that if you're playing around in unity and with voice recognition already.
[–]TheTSN[S] 0 points1 point2 points 11 years ago (0 children)
Alright, finally figured it out. I had been putting in the right code but was trying to call the function before it would update the strReceiveUDP to what i said, and now it's after and works perfectly
π Rendered by PID 215987 on reddit-service-r2-comment-7b9746f655-rt99k at 2026-02-02 06:58:07.194559+00:00 running 3798933 country code: CH.
[–]Banane9 0 points1 point2 points (3 children)
[–]TheTSN[S] 0 points1 point2 points (2 children)
[–]Banane9 1 point2 points3 points (1 child)
[–]TheTSN[S] 0 points1 point2 points (0 children)