A ChilloutVR's Laydown system. Animator based for maximum compatibility. Mainly taken in mind for Desktop, 3-Point Tracking and 4-Point Tracking users to use as an extention for a laydown system that can dynamically change laydown animations, and even have more control for being able to sitdown and standup and for animations to change inbetween certain user defined threshold sets without relying 100% on mods while also being easily modifiable/expandable by anyone.
While this setup doesn't need mods at all, I recommend for 3 Point Tracking and 4 Point Tracking users the use of Avatar Motion Tweaker - with the use of the CVRMelonAssistant a community and Developer moderated mod/plugin repository and mod installer - mainly to fix some IK issues and facilitating the usage of this package, but again not neccesary. On the future will release an even more involved setup that would address not needing mod usage with jsut aniamtor logic.
Setup compatible from the get-go with Action Menu mod, for an easy Pie-Menu experience (make sure to read how to use it or will not work if you want to use this), also available on the CVRMelonAssistant collection.
Tldr: Easy laydown for CVR.
- Unity 2021.3.23f1
- The latest CCK available
ChilloutVR's doesn't have an overly involved setup addon such a VRCFury, but honestly it's not really needed for this. Still, many new users might have difficulty understanding or even not knowing where/how to setup this, so I will explain it the best as I can below. There are 3 Main Parts, the Layer/Parameter Setup - for the Animator setup, the Advanced Settings Menu Setup - for the ingame menu connection, and the Parameter Stream Setup - for the dynamic Parameters to work.
There's 3 Multiple ways to make the Layer/Parameter setup, I absolutely recommend the RATS Method, but it's not the only way.
FYI- This way is fast and works with default Unity/CCK and no extentions, but I don't recommend it still due to how Unity Animator Editor can be buggy and not copy Parameters or Parameter Conditions within the Transitions between layers. So be warned.
-
You start by going into Unity inside the included Animator Controller.
-
Go and copy the included Layers into your own Avatar's Animator Controller (Ctrl+C/Ctrl+V)
-
Seriously, make sure you copy both the Laydown and Laydown Compare layers only (Ctrl+C/Ctrl+V)
-
After copying them into your Avatar's Animator Controller, make sure the Parameters were also copied over, Unity is dumb and there is a coin flip it may or may not copy these correctly so if you don't see them on your own controller add them manually to make sure you have them right and it should fix most issues if they have the exact same name as exact Parameter type, otherwise try another method.
NOTE: Beware SimpleAAS isn't meant for this usage but it works as a janky way to merge controllers fast.
-
As a preface the usage for SimpleAAS is not supported by the dev of the extention, this is pure jank that works.
-
Install Simple AAS (more info under the Addons Recommendation section below). Simple AAS on compilation automatically populate the Override Field under the CVR Avatar component as well as retarget the existing Animator Controller Override with the newly created Animator Controller. Do make notice of this.
-
If you have not used SimpleAAS yet, read how to use it and what it does, otherwise follow my jank. You must have your completed Avatar Controller/ CVR Avatar setup, and also make a backup of such, in the scene/backup scene/export/DO IT.
-
Make an empty game object on your scene, search for a component called "SimpleAAS", and basically copy the setup on this image step and press "Compile", after a short moment it will merge Controllers
-
Now with your new Controller, just set it up correctly to your CVR Avatar's Animator/Animator Override sections. New controller found inside Assets\NotAKid\SimpleAAS.Generated\Controllers normally.
-
After doing all this confirm your Advanced Avatar Settings are correct, return them into their previous state if neccesary (you can say a way under the Advanced Avatar Menu Setup Section. Also Make sure to delete the new Game Object with the SimpleAAS component, or it will recompile on upload and cause issues. NAK warning so do so!
-
Install RATS Unity Package and Harmony for Unity Editor! Unity Package into your project, works on Unity Editor 2021 without any issues. (more info under the Addons Recommendation section below).
-
Now it has copied both the layers and parameters. Simple as that.
-
In order to have the ingame recognize the Laydown system, just drag the Example Setup into the scene
-
Under the CVRAvatar/Advanced Settings there's gonna be a Triangle on the right side of the Inputs section, click on that and jsut copy/paste all of the settings into your own Avatar's Advanced Settings
-
Finally for the #AUpright parameter to be dynamically updated, we are gonna copy/add the included Parameter Stream from the Exampel Setup included. Just follow the images and you will get it. If you already have a Parameter Stream included on your Avatar, just add the value as it appears into your own Parameter Stream.
-
VR Usage
-
Compatible with 3 and 4 point tracking. best experience is with 4 point tracking tho, since otherwise the legs will rotate with the legs too.
You don't need this for the setup to work, but I highly recommend this addon's/extentions!
- @NotAKidOnSteam 's AASEmulator a simple in Editor ChilloutVR's Advanced Avatar Settings emulator that let's you test your animation's and your Animator Logic rapidly and easily.
- @NotAKidOnSteam 's CCK.BaseAnimatorPatch an alternative for ChilloutVR's base avatar animator that is easily extendable and with spot logic. (Also has some better animation configurations in my opinion :P )
- @NotAKidOnSteam 's SimpleAAS a simple Unity Animator Controller merger, best used to combine multiple animators into 1! Also incredibly useful when porting avatars from other platforms into ChilloutVR!
- The unfortunately named RATS, or (๐ RATS - Raz's Animator Tweaks 'n' Stuff ๐ง) for it's extention and bugfixes of the Unity Editor, can't remark how useful this thing is, so use it! (specifically the Animator editor, which still hasn't been properly bugfixed by Unity even on Unity 2021...)
- Harmony for Unity Editor! repacked by Rrazgriz and the legend of Brrainz for originally making it - without their help modding Unity Games (and Editor) wouldn't be the same as we know it now.
- Dervali for their awesome LaySitting Prefab and animation resource!
- Lastation for their NSFW GoLoco as inspiration and animation resource!
- Franada for their original GogoLoco as an inspiration.
"The MIT License is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions." -https://choosealicense.com/