Force Write Defaults v1.0.* Instructions
Overview
This is a NDMF plugin that non-destructively forces a animator state writes defaults or not.
Notes
- This package has only been tested with VRCSDK3 and Unity 2022.3.22f1.
Installation
Dependencies
This package depends on the following packages. Make sure you have installed it before installing this package.
- Non-Destructive Modular Framework (1.11.0 or higher): https://github.com/bdunderscore/ndmf
Installing Package
- Go to our vpm package listing page.
- Click on
Add to VCCbutton to add the repository into VCC/ALCOM. - In VCC/ALCOM, go to the project's manage page and install
Force Write Defaults.
How to Use
This plugin supports overriding animator states' write defaults with State Behaviour or state name marks, State Behaviour method has higher priority.
Override Write Defaults with State Behaviour
- Select states that need to be override in Animator;
- Go to Inspector and click on
Add Behaviour; - Search for
Force Write Defaultsand add it to the selected state; - Check / Uncheck the
Write Defaultsfield in the addedForce Write Defaultsto override the write defaults.
Override Write Defaults with State Name Mark
- Select states that need to be override in Animator;
- Go to Inspector and edit the name of the selected state, Add
(WD On)/(WD Off)(Case-insensitive) at the end of the name to override the write defaults.
Done
Enter play mode or build the avatar to see the result.
How to Use endHow Does It Work
This plugin runs in NDMF's optimizing phase.
What Does It Do
When it runs, It:
- Searchs for every Animator State and Animator State Machine in avatar;
- Finds out if there's any
Force Write Defaultsin that state or state machine; - If there's any
Force Write Defaultsin the state, or the state's name ends with(WD On)/(WD Off), overrides it's write defaults; - Destroy
Force Write Defaultsin the state or state machine.