I can not get the child mesh components of my Third Person Character to display when I go into level 2.
These are the steps I’m using: (These steps coincide with the screen grabs, below.)
- Clothing are placed as children in the ThirdPersonCharacter Mesh (inherited)
- The UMG buttons set the clothing in the ENUM, runs through a Switch on ENUM, then execute the proper function to display the ENUM clothing on Third Person Character (TPC)
- Is an example of a function that displays the proper clothing when a button is pressed.
- Created a STRUCT with the ENUM categories for Head, Torso, and Legs
- Put Struct into Save Game
- Put the STRUCT variable into “Game Instance” Save Game function
- Put the STRUCT variable into “Game Instance” Load Game function
- The “Construct Avatar” function used in Load Game.
- Load Game, that runs the “Construct Avatar” function after level 2 opens.
- Trying to debug, I can see the player mesh in Level 2, if I plug in a mesh into the Mesh (inherited).
So, maybe the problem is, a need a function that looks for the children(clothing) of the Mesh(inherited). Then turn, on the appropriate clothing based on the Enums.
This is my goal:
- Like most character customization systems, there is an array of buttons for head styles, an array of buttons for the shirt styles, and array of buttons for the pants styles. There will be hats, glasses, hair, backpacks, and other categories.
- Click on the appropriate button to see the clothing you want displayed on the character.
- The clothing items are child components of the Third Person Character that I will be turning on. The clothing visibility is turned off as a default state. I will turn on the visibility to display the clothing at runtime.
- When the player is happy with the clothing choices, all the clothing items will be saved in one variable. Hopefully, that one variable can be stored in Game Save, some kind of STRUCT, or an ENUM. There can be many outfits stored, so maybe I can store the different outfits in a closet.
- The game can be turned off, but when the game starts back up, the player can go into his closet to choose the same outfit or a new outfit.
- The character will be going between levels, so maybe the clothing can be stored in Game Save or a scene manager.
- List itemThere will be a sub set of buttons for Morph targets.
- There will be a subset of buttons to change the textures on any piece of clothing.
- I’m starting with an array of 3 temp heads, 3 temp torsos, and 3 temp legs:
I can provide screen grabs of any blueprints requested.