Object class and static vars in BP?

  1. How do you instantiate an Object based class in a BP script? I.e a class that is derived from the class “UObject”
  2. How do you declare and define and access static variables in Blueprints only?

Certain functionalities become handicapped without above being available.

Example:-
Like passing damage class in Damage events can only be used to compare the classes and no damage related data can be extracted from the class due to inability to instantiate the damage type class.

Hi, sure this post is a bit old, but just in case…

  1. There should be something like “SpawnActorFromClass” to create actors of a specific class with a specific world transform
  2. AFAIK blueprint doesn’t support static variables (UE4.17), but there could be some tricks to fake that depending on what you need to do.