Super is not the only alias you get when working with UObjects.
You also get access to ThisClass which comes in handy for both macros and delegate bindings.
Did you know about the `ThisClass` typedef in UE C ? 🤔
It's helpful for referring to the current class inside a function. Example:
PlayerInputComponent->BindAxis(TEXT("MoveY"), this, &ThisClass::MoveY);
#UE5#UnrealEngine#UnrealEngine5#Unreal
We had quite the day! We started our day with a walk to Starbucks to see what 1km feels like and ended our day creating circuits that included switches. #thisclass 😍 #medfieldps#beproudbedale
I don’t like when devs do things like …
class ThisClass<T> {
//! code code code
}
My guy, what is T?
What if you write …
class ThisClass<AnyType> {
//! code code code
}
would it hurt?
My idea is to not use the offsetof() macro, and instead expand it to the old-school definition of offsertof(), which in this case would be something like
(intptr_t)&(((thisClass *)0)->m_steamcallback_ ## func)
*Speaking with a posh British accent to get students’ attention*
Kid 1: You sound like a queen.
Kid 2: That’s because she is a queen! *snaps fingers*
😂😂 👸
#dyinglaughing#thisclass
The awesome student teacher lessons continue with edible Sunbutter Play Dough, homemade chocolate chip cookies, whirlpool in a bottle, magic and baseball! #thisclass🦁❤️🦁
In my attempt to reduce some boilerplate I write the main method as:
public static void main(String[] args) {
new ThisClass().perform();
}
where main is in a class named ThisClass and there is a public method named perform.
1/2