this post was submitted on 10 Aug 2023
20 points (100.0% liked)

Game Development

3449 readers
1 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 1 year ago
MODERATORS
all 4 comments
sorted by: hot top controversial new old
[–] Mikina@programming.dev 6 points 1 year ago

Async/await and Tasks in Unity. They basically work similar to Coroutines, but without the boilerplate code required.

I'd even say that Tasks and async is better in most of the cases you'd use a coroutine for - the main difference is that Coroutine is tied to framerate, and is guaranteed to be executed every frame (unless you yield something that waits longer), which is something you can't do with Tasks. But most of my Coroutine usage is tied to WaitForSeconds, and that's where Tasks are IMO better suited.

[–] soulsource@discuss.tchncs.de 3 points 1 year ago

Unreal's Dynamic Delegates are very limited. If you don't need to expose delegates to Blueprint, use normal (non-dynamic) delegates instead. Not only are they faster, they have tons of features that are not available on dynamic delegates.

[–] xilliah@beehaw.org 1 points 1 year ago

In unity you can call a lot of internal stuff using reflection.