wiki.sine.space | sinespace

Difference between revisions of "Full Body Replacement Costumes"

From wiki.sine.space
Jump to: navigation, search
Line 36: Line 36:
 
Select the prefab of your costume in the Assets window (not in the Hierachy) and add the ‘Virtual Goods Script’<br>
 
Select the prefab of your costume in the Assets window (not in the Hierachy) and add the ‘Virtual Goods Script’<br>
 
Fill out the mandatory sections and any optional you wish, watch for messages at the bottom of the window when you try to submit, it will tell you what you are missing.<br><br>
 
Fill out the mandatory sections and any optional you wish, watch for messages at the bottom of the window when you try to submit, it will tell you what you are missing.<br><br>
 +
 +
[[File:Shopping.PNG]]<br>
 +
[[File:Vendormid.PNG]]<br><br>
 +
Upload the item as a piece of clothing, does not matter what clothing item.  The item will upload to your inventory.
 +
 +
To wear the costume, open your Inventory , and click on the Costume and select 'Wear'. To unequip, simply wear something else.  Do not use the outfit window.<br>
 +
 +
Note: If  you don’t want this costume to appear in the store, be sure to check ‘Not for Sale’ in the virtual goods script. <br><br>
 +
 +
 +
== To Create A Animator ==
 +
 +
Animators are the second part - this allows you to upload completely custom animations; including as part of another clothing item (e.g. a Beer jug that<br>
 +
makes you swerve drunkenly is possible).<br><br>
 +
[https://docs.unity3d.com/Manual/Animator.html|Unity Documentation Animator]<br>

Revision as of 17:34, 3 November 2016

In space you can completely customize your avatar skeleton anything from an alien, fire elemental to a dragon.

There is two parts to this particular feature - Costumes - costumes are an object which replaces your base skeleton mesh with something
entirely custom. We load the Game Object whole and insert it into the avatar hierarchy on load. The costume can be anything a box to a particle

system such as a fire elemental. You can add custom animations so for an example the particle system could change colors as you walk.

Note: You will need to be using the space asset pack 7.5 or later.<p> To Create A Costume Create your avatar as a normal game object with whatever elements you want, if it has an animator on it, you should uncheck "Apply Root Motion".
If ‘Apply Root Motion’ is greyed out, drag your model into your scene, then drag it back into the assets folder to convert it from a 'Model Prefab'
to a plain 'Prefab'. If your new avatar is humanoid you may want it compatible with the current avatar animations already in space or any custom animations you wish to add.
Click on the original FBX file in your Assets, Under the 'Rig' tab on the Model Importer in the Inspector, select 'Humanoid'. You may need/want to configure this.

Rig.PNG

Create a new blank Game Object in your scene, and attach a Clothing Item Settings component. Under the Clothing Setup slot settings, check them all.
The only exception is Animator, only select this if you have created your own custom animator.

Clothingslots1.PNG

Under 'Extended Settings' there is 'Skeleton' field. In the 'Root Template' drag from the Project Panel (NOT the Hierarchy) the prefab you are using
for your costume into this slot. Tick 'Attachment' but otherwise leave everything alone. Click 'Prepare' - and save this new game object as a prefab the same as other clothing items.
If your object does not require an animator, you can upload it.

Uploading Your Costume

Select the prefab of your costume in the Assets window (not in the Hierachy) and add the ‘Virtual Goods Script’
Fill out the mandatory sections and any optional you wish, watch for messages at the bottom of the window when you try to submit, it will tell you what you are missing.

Shopping.PNG
Vendormid.PNG

Upload the item as a piece of clothing, does not matter what clothing item. The item will upload to your inventory.

To wear the costume, open your Inventory , and click on the Costume and select 'Wear'. To unequip, simply wear something else. Do not use the outfit window.

Note: If you don’t want this costume to appear in the store, be sure to check ‘Not for Sale’ in the virtual goods script.


To Create A Animator

Animators are the second part - this allows you to upload completely custom animations; including as part of another clothing item (e.g. a Beer jug that
makes you swerve drunkenly is possible).

Documentation Animator