- Home /
How to change a your player look in once scene and then load it in another
I am trying to make a player customization screen where you can change the look of the player's cube. I don't know where to start other then that I just have a prefab of a basic cube. I am trying to go for something like a game called Polyguns on Roblox where you can change your load out and then spawn into that map with that load out.
Can someone help me out?
Create a data object that represents the loadout, and instantiate the prefab based on the loadout data object.
Answer by Joe-Censored · Apr 04, 2017 at 11:24 PM
In your load out scene have an object with a script attached in which you record your load out choices, give it a unique tag such as "loadout", and set that gameobject to DontDestroyOnLoad. Then when you open your gameplay scene your "loadout" tagged object is still there with the load out data in the attached script for you to query when you instantiate your player gameobject.
https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
Answer by hov20802 · Jan 12, 2018 at 09:41 AM
We are hoping for free jigsaw puzzles for do the same things.
Your answer
Follow this Question
Related Questions
Prefabs spawn with wrong values 0 Answers
Prefabs won't change? 1 Answer
How to hide a character prefab 1 Answer
changing instantiated prefabs 0 Answers
How can I switch between prefab variants in runtime. 1 Answer