Variables are what is actually in the code and what you should check and use, while properties are just aliases for those variables that are there for children classes to modify.
For example if you make a variable called BerryTaste, then you can already use it anywhere in your class' code, but children classes won't be able to specify the default value because it lacks an assigned property.
But if you create a property BerryTaste which is an alias for the variable BerryTaste, each children class will be able to specify it in their Default block as Bush.BerryTaste.
You can still modify those variables in the children classes if you don't assign a property to them, but that will require using an override such as PostBeginPlay, you won't be able to do it in their Default block.
For example if you make a variable called BerryTaste, then you can already use it anywhere in your class' code, but children classes won't be able to specify the default value because it lacks an assigned property.
But if you create a property BerryTaste which is an alias for the variable BerryTaste, each children class will be able to specify it in their Default block as Bush.BerryTaste.
You can still modify those variables in the children classes if you don't assign a property to them, but that will require using an override such as PostBeginPlay, you won't be able to do it in their Default block.
Statistics: Posted by Jarewill — Wed Feb 07, 2024 9:22 am