Character Customization & AssetBundles
A while ago, I was talking to a customer who was trying to figure out how to best make a customizable character in their game. After explaining how I’d do it, I figured it would make good material for a more extensive demo project. Bas Smit (who wrote it) and myself just gave a presentation on the project during the Unite conference.
Let’s start with a demo: (click it to start)
[WP_UnityObject id=”u1″ src=”http://unity3d.com/gallery/live-demos/players/dressingroom.unity3d” width=”650″ height=”400″ altimage=”https://blogs.unity3d.com/wp-content/uploads/2009/11/Picture-2.png” css=”http://unity3d.com/u3d.css” /]
You’re looking at the DressingRoomExample from the project. It shows how to use the system to make an avatar creator, where you can choose different types of clothing, accessories, etc.
This demo project serves two purposes:
- A drop in solution for people who want to add customizable characters to their games.
It’s quite easy to just add your own characters, as long as you follow the naming conventions by the example characters included (feel free to use the included example characters as well!)
- A reference project that shows how to use AssetBundles. The project uses asset bundles extensively, and is a great example for people who are looking for a more real world AssetBundle project to look at for inspiration.
The project also contains a second example usage of the customizable character system. It’s an example of a solution to a problem virtual worlds often run into: A wizard with a magic red cape logs in, and runs towards you. But you don’t have the red cape downloaded yet.
The demo solves this problem by displaying a white particle cloud, indicating the presence of a character. When all the different assets that are required to properly display the character are downloaded, we spawn the character in the particle cloud, and make the particle cloud dissapear.
Please feel free to use all assets and code in the demo for your own projects. We hope you like it.
4 CommentsSubscribe to comments
Comments are closed.