it comes from object oriented programming languages, which all have these concepts: class is the declaration of objects that you create (instantiate) when you run the code. so the class is the blueprint specification for one or more instances of objects based on that class blueprint.
@thegamedevcave6 ай бұрын
yeah i imagine that's where the word blueprint come from too, because a class is a "blueprint" for what an object should be like. Clever naming on epic's apart, makes it a little confusing to explain though XD
@dragondev26176 ай бұрын
this is my favorite UE Tutorials channel
@thegamedevcave6 ай бұрын
Thanks!
@BOLTONSOFT3 ай бұрын
@@thegamedevcave I agree, this is the best channel for me. He makes sense!
@johnpekkala69415 ай бұрын
If I understand it correct the class reference is like using the Static keyword in general OOP wich then refers to the class itself and not its instances. I use this mostly when I want to use a class for storing data that can then be accessed by other classes for data sharing/saving purposes as well as the main parameters for the entire game/program, like a singleton. Im not so sure how useful that specific usage is in Unreal however since as I understand the variables in every single class other then the GameInstance are always reset to their default values upon loading a new level and so the GameInstance is the only place in Unreal Engine that can be used to store values and data across the entire game, things like game progress, the last level and other things that you dont want to be lost upon loading the next level but carry over across the entire game need to be in the GameInstance or a savefile.
@thegamedevcave5 ай бұрын
anything that exists inside a world in unreal will be reset to it's default values (which includes game modes and player controllers since they are also tied to a level) things like assets that exist outside of the world though, are persistent (writing to a data asset will persist between levels, just not between play sessions, when you close and restart the game you'll find them reverted back to default too) Within blueprint i dont think it is possible to write to a class itself. but you can read the class default values! which can be useful in some cases but generally, not too much. but long story short, yeah working with class references is pretty much like accessing static members in normal OOP.
@lslees_61926 ай бұрын
super useful thanks!
@thegamedevcave6 ай бұрын
Glad it was helpful!
@MaraldBes6 ай бұрын
thx, useful for sure.. (pls highpass your audio before upload to avoid the keystrokes sub frequencies destorying my woofers)