Introduction
In this article, explain how to use Lura’s Switch.
This is an asset that adds multiple functions such as mirrors and light sources to the VRChat world using a switch method.
![](https://signyamo.blog/wp-content/uploads/2022/06/Animation2-7.gif)
I will proceed on the assumption that world exists.
(World SDK3, assuming Udon Sharp already implemented.)
![](https://signyamo.blog/wp-content/uploads/2022/05/image-69.jpg)
※The writer is Japanese and translates using DeepL.
There may be some strange translations.
Lura’s Switch Installation
↓Access this page
![](https://signyamo.blog/wp-content/uploads/cocoon-resources/blog-card-cache/571ab2d5bdc8c6e1b7a9927ac4f8dcdb.jpg)
Select the language button in the upper right corner.
Translate Booth Web page into English.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-01-9.jpg)
Please Click [Free Download]
Select → Lura_sSwitch_ver2.01_SDK3_2019.zip
![](https://signyamo.blog/wp-content/uploads/2022/06/image-01-14.jpg)
All Extract the DL Zip.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-02-11.jpg)
Drag and drop the .unitypackage inside to the world’s Project.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-03-12.jpg)
Make sure everything is checked.
Select Import.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-04-12.jpg)
Open [Project → Assets → VirtualFoxDesignStudio → Lura’sSwitch(Udon) → PREFAB]
All prefabs here are sample data.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-05-12.jpg)
As an example, drag and drop Mirror_WithSwitch into the Hierarchy.
You can see a sample like this.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-06-12.jpg)
Upload to VRChat in this state.
Press the switch to turn on/off the mirror.
![](https://signyamo.blog/wp-content/uploads/2022/06/Animation2-4.gif)
This completes the Installation of the Lura’s Switch.
Move the switch position
To move the entire switch, move the top level.
In this case, it is “Mirror_WithSwitch.
You will check the reason why we do so.
Check Gizmos for switch collision determination.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-09-4.jpg)
Move in the lower Hierarchy level.(Move Switch_Mirror_On/Off)
Collision detection is misaligned and broken.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-10-4.jpg)
This completes the move the switch position.
Move the content
Open contents in Hierarchy.
In this example, VRCMirror is checked.
Make the contents visible.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-06-5.jpg)
Adjust the position and size of contents
![](https://signyamo.blog/wp-content/uploads/2022/06/image-07-4.jpg)
Uncheck content in Inspector.
Reset to hidden status.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-08-4.jpg)
Upload to VRChat in this state.
The content is moved by this process.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-07-11.jpg)
This completes the move the content.
Add & change contents
You can add or change the contents by altering the inspector of the collision determination.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-08-10.jpg)
Add content.
Increase the Size of the Target Object.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-09-10.jpg)
Add objects etc. to the Hierarchy.
Add cube as an example.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-10-9.jpg)
Place the object you want to add in the increased “Element”.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-11-9.jpg)
Press the switch.
Then the object ON/OFF set by Element is flipped.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-13-10.jpg)
Upload to VRChat.
Then it will behave like this.
![](https://signyamo.blog/wp-content/uploads/2022/06/Animation1-11.gif)
Check is Global in Inspector.
You can then globalize the behavior of the switch.
![](https://signyamo.blog/wp-content/uploads/2022/06/image-12-10.jpg)
This completes Add & change contents.
Ending
Explained how to turn mirrors, objects and light sources ON/OFF with switches in the VRChat world.
Other useful know-how for VRChat world production is also explained.
Please take a look at this page as well.
コメント