"Cast To X" vs "Cast To X Class" - difference?
I've moved from 4.4 to 4.6 and now every "Cast to" has two options per class, for example:
Cast To Weapon | Cast To Weapon Class
Cast To Monster | Cast To Monster Class
etc. What's the difference between them?
asked Dec 06 '14 at 06:26 PM in Blueprint Scripting
The first one will cast your input to a reference that already exists while the second cast to its type.
answered Dec 06 '14 at 06:33 PM
The difference between them is that an Object Reference type is placed somewhere in the level (it has already been created at the time the cast is called), while the class version does not yet exist.
Zak gives a really good explanation of this in the following video: https://www.youtube.com/watch?v=xu7ymhN_7Lo
Hope that helps!
EDIT: Tensa beat me too it :)
Follow this question
Once you sign in you will be able to subscribe for any updates here