How do you instantiate a basic Object? (Not an Actor)
I'm adding the concept of Civilizations to my game and each player will select their own Civilization.
As far as implementation goes, I'd like to create a generic abstract Object called "CivilizationAbstract" and additional generic Objects that inherit "CivilizationAbstract" for each Civilization (like American, German, Korean, etc).
However, I haven't found a way to instantiate/new-up these generic Objects. If I were to reparent them as children of Actor objects I think that would be overkill -- they don't need to be instantiated into the world/level and they don't need Actor events.
Here's some more details regarding the planned process that will be using these Civilization objects (in case this helps you understand what I'm trying to achieve).
My final questions are: How can I instantiate a generic Object? If this is not possible, what would your recommended approach be to achieve this?
And for added clarity these Civilization objects will contain information about that Civ, like:
asked Sep 12 '16 at 12:09 AM in Blueprint Scripting
"Construct object from Class" would give you ability to instantiate objects in blueprints so you would be able to use them as data type.
answered Sep 12 '16 at 07:29 AM
You can't instantiate objects in blueprints, only in C++.
For your approach, consider using data tables for information about a civilization (unit types, balance, descriptions) inside your game mode or other such applicable class. I'm not sure you can use data tables for icons, but these are easily added as stand alone textures/materials that can be added to you UI later.
answered Sep 12 '16 at 01:42 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here