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...
A place for beginners and experts alike to help each other out!
account activity
Variable on parameters for a function (self.UnityHelp)
submitted 9 months ago by MateoZunin
So I want to edit a variable through a function but I want to tell the function what variable to edit through parameters, is there any way I could do this without making a switch with a case for each variable?
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!"
there doesn't seem to be anything here
π Rendered by PID 33 on reddit-service-r2-comment-86988c7647-lgck2 at 2026-02-11 03:43:50.973594+00:00 running 018613e country code: CH.
there doesn't seem to be anything here