TheBoxyBear
TheBoxyBear
CC#
Created by {•Game•} on 1/16/2025 in #help
Why when I add a file it doesn't appear?
You seem to have a lot of compiler errors. Are you clicking Yes when launching? Then that would be launching the previous build so changes to your code won't apply
10 replies
CC#
Created by heloo on 11/18/2024 in #help
Issue with code execution
To this day scientists all over the world are (not) questioning what OP was trying to say
8 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
What's Discord.Discord? Judging from the syntax highlighting it seems to not be recornizing that type either
25 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
The errors seem to be in file Loader
25 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
Oh so it's your own type
25 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
What package are you using? Discord is a very generic namespace
25 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
Also the package name for reference
25 replies
CC#
Created by shades on 10/29/2024 in #help
DiscordPresence Issue
Are you including the package's namespace with using?
25 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
Or have a parameter to choose the behavior
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
Although if some subroutines are known to not throw exceptions, it might be worth letting them yield from HandleExceptions rather than forcing it at the root
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
That's what I was wondering, I couldn't find docs about unity flattening subroutines you send it
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
yield return HandleExceptions(subRoutine); On the first level, it would send an enumerator to the coroutine rather than Wait objects
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
Though woudln't the internal call to HandleException need to be enumerated as well instead of yielded?
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
^
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
You could also let the methods yield enumerators and only try at the highest level, then flatten recursively for every item that's an enumerator, but then you couldn't start coroutines on individual methods and woulld need to instead wrap it in a flattenner helper method.
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
The wait requests* ig
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
So do you want the items fully flattened by the end? You can always check the type of the current object against IEnumerator and enumerate that
74 replies
CC#
Created by Ruttie on 10/29/2024 in #help
Try-catch in an iterator
The new snippet has Method1 return items from Method2
74 replies