• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Creating Prefabs in unity

Guides Creating Prefabs in unity

MacGruber has a brilliant guide about assetbundles , including creating prefabs.

I have done this as simple 4 step by step guide to creating Prefabs

thanks to Hazmhox for the feedback, drag and drop the folder instead of the prefabs individually. By using a folder, it is extremely easy to update the package because you know that you only have a folder to drop. If you start to take a prefab here and there, this is the perfect way to update a package and forget a few things .

i have updated the process

First is about the X Y Z (0/0/0) position

MacGruber
When loading this later in VaM, we want our assets to appear right where the CustomUnityAsset atom is located. Here in Unity that position is 0/0/0. Therefore, we need to position our asset in the scene in the same way we want it located later in VaM in relation to 0/0/0. It can help sometimes to add a little helper object in the scene and position it at 0/0/0 to figure out where something needs to go. In this particular case the mesh is already nicely aligned, we can just move the ottoman back to 0/0/0. No worries about both being inside of each other. Inside VaM these will be separate objects.

but in my case my building and door is offset in the y position so i have to set it to 1 to be at floor level with the grid

position.png


Creating Prefabs

1 Step
Step 1.png

Step 2
step 2_1.png

Step 3
step 3.png

Step 4
step-3_1.png


MaGruber covers a tutorial in building the assetbundle

assetbundle_in_vam.png

More resources from VamTastic

Share this resource

Latest reviews

Positive
Posted:
That's helpful!! thanks!
Upvote 0
Positive
Posted:
Can any unity item be converted to an assetbundle or prefab? I have animated lightning that runs off a .cs in unity, but doesn't do anything when i create bundle. Any ideas on that?
VamTastic
VamTastic
you best ask Hazmhox regarding a unity script to work in vam , my guess is you would need a plugin version to work in vam.
Upvote 0
Positive
Posted:
Thank you for this great and detailed guide! Very useful :)
VamTastic
VamTastic
Thank you VRDollz
Upvote 0
Positive
Posted:
Super explained !
VamTastic
VamTastic
Thanks Frief , most appreciated
Upvote 0
Positive
Posted:
Nice for beginners using Unity :)
VamTastic
VamTastic
thank you , yeah it was the intention to help new creators with assetbundles that didn't seem to use prefabs or not no how , i`m still learning too :)
Upvote 0
Back
Top Bottom