EXPLAINING Unreal's Object Reference VS Class Reference!

preview_player
Показать описание
The Different types of References are a point of confusion with a lot of new unreal engine users. Soft/hard references? objects and classes? Today we'll take a look at the blue Object references and the purple Class references. What both of them do, and how to use them.

Join this channel to get access to perks:

Рекомендации по теме
Комментарии
Автор

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.

Chris-opyt
Автор

this is my favorite UE Tutorials channel

dragondev
Автор

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.

johnpekkala
Автор

thx, useful for sure.. (pls highpass your audio before upload to avoid the keystrokes sub frequencies destorying my woofers)

MaraldBes