VRChat provides a default locomotion controller that tells Unity how your avatar moves when you move in-game. It is located under *Assets/VRCSDK/Examples3/Animation/Controllers/vrc_AvatarV3LocomotionLayer.controller*
**Step 1: Find the Locomotion Controller**
- Navigate to *Assets/VRCSDK/Examples3/Animation/Controllers/vrc_AvatarV3LocomotionLayer.controller* in your Unity setup.
**Step 2: Copy the Controller**
- Copy the default locomotion controller provided by VRChat.
**Step 3: Place the Copied Controller**
- Put the copied file in a new location to preserve the original file.
There are multiple ways for a VRChat avatar to "spawn" or "place" an object into a VRChat world and have it stay there while you move around, etc.
**1. Use a particle system**
Add a "Particle System" component to a GameObject. Configure the component like the screenshot:
- "Simulation Space" to "World"
- "Start Speed" to "0.0001"
- Renderer - "Render Alignment" to "Velocity"
Then select a mesh as the Renderer (note you are limited to meshes with only 1 material slot).
This will make Unity render your particle once and have it stay there forever (or until you turn off the particle system with an animation).
Preview: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/ad49b756876c46c3b4cc92b88341be67.png
**2. Use a "Configurable Joint"**
- Add a "Configurable Joint" component to the GameObject you want to "spawn".
- Set the X/Y/Z Motion and Angular X/Y/Z Motion to "Locked". This will tell Unity to have it lock in place while you move around.
You will probably want to hide the GameObject using an animation!
Preview: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/c3d0c93aa3fe4b8c9c6876ad78c7cd87.png
**3. Done**
Toggle the GameObject for it to appear.
If you're encountering pink materials while working in Unity, it's almost certainly due to the material trying to use a shader system that isn't available. Below, you'll find a couple of solutions to tackle this common issue.
**Solution 1:** Changing the Shader to Standard
- **Step 1:** Locate the material that's giving you trouble. This is typically found in a material folder and is identifiable by a spherical icon.
- **Step 2:** Once you've selected the material, navigate to its properties panel. Look for a section labelled "Shader". It should resemble this: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/e4f33af725f04616948b366fb166d23a.png - **Step 3:** Within the "Shader" section, select "Standard".
**Solution 2:** Downloading and Installing the Missing Shader
- **Step 1:** Identify the shader being used. You can do this on the upload page where the shader details are typically specified.
- **Step 2**: Once you've found the shader, download it. These files are usually available for download online.
- **Step 3:** Open and install/load it into your project, Unity shaders typically comes as a unitypackage file.
**Step 4:** Follow the steps in Solution 1, but instead of selecting "Standard", choose the name of your newly downloaded and installed shader.
- **Final notes:** If you are using a custom shader and your model is not visible, that is a whole other rabbit hole, we recommend sticking to well know shader packs like: https://github.com/cubedparadox/Cubeds-Unity-Shaders
**Results!**
With this, you've changed the shader to the standard option, which should resolve the pink material issue.
**Media hosting**
https://vrcmods.com/dashboard/files will be useful if you like showcasing media in between paragraphs. I'll be simplifying this system to be automatic in the coming days.
I've also been making lots of UI improvements and bug fixes, nature is healing.
**Prerequisites**
- **Trusted VRChat User Account:** In order to upload custom Avatars & Worlds to VRChat, you must have a trusted user account, which generally requires around 12 hours of active playtime. This is typically the first hurdle new users encounter when creating their own content. *You will receive an email once you have Trusted*
- **VRChat Creator Companion**
- **Unity:** Please ensure you install the version recommended by the Creator Companion.
**Installation Guide**
- **Download the VRChat Creator Companion:** Visit the official VRChat website and download the VRChat Creator Companion from the following link: (https://vrchat.com/download/vcc)
- **Install the Creator Companion and Unity:** Follow the instructions provided by the VRChat Creator Companion to install it along with the recommended Unity settings.
- **Create and Open an Avatar Project:** Proceed to create a new avatar project (SDK3) using the Creator Companion, then open the project.
- **Log into VRChat:** Access the VRChat SDK, select 'Show Control Panel' to open it, then log in using your VRChat account.
- **Open the Unitypackage Scene File:** Load the scene that comes with the VRChat Avatar Unitypackage.
- **Build and Publish Preview:** Navigate to the 'Builder' tab in the Control Panel and click on 'Build & Publish For Windows'.
Screenshot for reference: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/d59bcd9c820948ee97a48eff5a89ab3e.png - If you see a message similar to the one below, you need to spend more time playing VRChat in order to attain trusted user status.
Screenshot for reference: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/c86ed451e2884e8989a161f0f6c07979.png - Once you have filled in Avatar Details you can submit the upload as public or private (recommended private) example image:
https://cdn.vrcmods.com/uploads/user/1/custom_imgs/5c1cf3a8ff0a4076b182230ece4b2e0e.png - Success: https://cdn.vrcmods.com/uploads/user/1/custom_imgs/191f29db8453439dbd53db0a8ef4d938.png
Hey, guess what? About half of the stuff you guys upload are pretty much just fbx and mat files, no real Unity stuff going on there. So, we thought, why not make things a bit easier for you? We're now allowing a wider variety of uploads.
Don't worry, we're still giving every file - even those outside of UnityPackage - a good old scan to keep things safe.
And here's some fun news: I might start automatically converting zip files to unitypackages and vice versa later this week. Let's make sure everyone can share and enjoy assets without a hitch, right?
- You can edit posts now.
- You can preview posts before posting them.
- All YouTube videos embed (make sure its liked like this: e.g. youtube.com?v=123456)