Hack Forums
[C#] Unity C# using UI text as function parameter? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Unity C# using UI text as function parameter? (/showthread.php?tid=5789758)



Unity C# using UI text as function parameter? - SilentkillarHF - Jan 24, 2018

Hey man, I'm working on my game in unity, and I'm trying to make a function, but I need to use the UI Text element as a parameter in the function.

This is kinda what I'm trying to do:
Code
void TextDisappear(Text) {
      
}

Is this even possible? Any alternatives?

- Silent


Nvm, I just found out. I was just dumb for a sec. How do I delete this thread?


RE: Unity C# using UI text as function parameter? - Dotexe - Jan 24, 2018

You can't delete this thread,nor close it.