Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
Dismiss Notice
Join us now in the Performance Profiling Dev Blitz Day 2023 - Q&A forum where you can connect with our teams behind the Memory and CPU Profilers and the Frame Debugger.

Question Customizing each player from a single prefab

Discussion in 'Multiplayer' started by DCTShinobi, Jan 29, 2022.

  1. DCTShinobi

    DCTShinobi

    Joined:
    Jun 23, 2014
    Posts:
    42
    Hello! I have not had much experience with multiplayer in Unity, but I did dabble a bit with UNet a few years ago. From what I remember, I was supposed to use a single prefab for a player object that would be used for every player.

    I am currently working on a project where I want players to be able to choose different classes and options. I already have a spawning system in place.

    I would like to keep the project rather open as far as which type of networking code is used... and even for offline singleplayer.

    Are there any suggestion for how to allow a player to customize their character (choose a class) even if there is only a single prefab that is used for every player?

    Or is a single prefab even a limitation?

    I've seen some tutorial videos of creating multiplayer games, but I haven't seen any that has a focus on pre-match settings (think of Halo's plethora of game options the host can choose from) or character customization.

    Would it be better to choose a class in a menu scene, or during the time waiting to spawn? Any guidance or even directions to appropriate tutorials would be greatly appreciated!

    Thank you! :-D