https://github.com/vrlabs/local-mirror-detection
Set an "IsMirror" parameter to animate conditionally with the local mirror.
https://github.com/vrlabs/local-mirror-detection
Last synced: about 1 year ago
JSON representation
Set an "IsMirror" parameter to animate conditionally with the local mirror.
- Host: GitHub
- URL: https://github.com/vrlabs/local-mirror-detection
- Owner: VRLabs
- License: mit
- Created: 2022-05-01T11:35:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T20:43:07.000Z (over 1 year ago)
- Last Synced: 2024-12-04T21:34:46.951Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 9.3 MB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Local Mirror Detection
[](https://github.com/VRLabs/Local-Mirror-Detection/releases/latest)
[](https://github.com/VRLabs/Local-Mirror-Detection/blob/main/LICENSE)
[](https://img.shields.io/badge/Quest-Compatible-green?logo=Meta)
[](https://unity.com/releases/editor/whats-new/2022.3.22)
[](https://vrchat.com/home/download)
[](https://discord.vrlabs.dev/)
[](https://patreon.vrlabs.dev/)
Sets an "IsMirror" parameter to true on your mirror clone

### ⬇️ [Download Latest Version](https://github.com/VRLabs/Local-Mirror-Detection/releases/latest)
### 📦 [Add to VRChat Creator Companion](https://vrlabs.dev/packages?package=dev.vrlabs.local-mirror-detection)
---
## How it works
* The mirror clone initializes after the local clone by copying the local clone in its current state.
* By changing the value of a parameter before the mirror clone initializes, we can desync the two clones in the FX Controller.
## Install guide
https://github.com/VRLabs/Local-Mirror-Detection/assets/76777936/f225e58d-5863-4e29-ae00-87bf8f4bfde5
* Merge the Animator Controller ``Mirror Detection FX`` to your own FX Controller, using the [Avatars 3.0 Manager](https://github.com/VRLabs/Avatars-3.0-Manager) tool.
## How to use
* The ``IsMirror`` parameter is a float. The value will be 1.0 on the mirror clone and -1.0 on your local clone.
* You can use this float to play animations for only your mirror clone
* Note that you can not animate transforms on your mirror clone
## Performance stats
```c++
FX Animator Layers: 1
```
## Contributors
[Dreadrith](https://github.com/Dreadrith)
## License
Local Mirror Detection is available as-is under MIT. For more information see [LICENSE](https://github.com/VRLabs/Local-Mirror-Detection/blob/main/LICENSE).
[
](https://vrlabs.dev "VRLabs")
[
](https://discord.vrlabs.dev/ "VRLabs")
[
](https://patreon.vrlabs.dev/ "VRLabs")
[
](https://twitter.com/vrlabsdev "VRLabs")