Hello! There are a couple of scripts you can use. I have set up example scenes. Feel free to reach out to me or submit an issue if you're having any trouble.
SIMMER.IO LINK: https://simmer.io/@hacceuee/diphtheria-toxin-unity-demo
-
Blue
- Click mol surface to turn it transparent
- Toggle turns entire chain off
-
Purple
- Click mol surface to highlight/turn white
- Toggle turns mol surface transparent
-
Pink
- Click mol surface to isolate that chain
- Toggle turns mol surface transparent
-
Green
- Click mol surface turn other surfaces transparent
- Toggle turns entire chain off
- Input: Two materials (Ex: opaque and transparent), two colors (Ex: blue and white)
- Set-up: Place on the object you want to click. Assign the two materials you want to switch between, and the two colors.

On the toggle/switch, assign the object that you put the script on, and set the action to ChangeColor_ToggleMaterial -> SwitchToggled.

- Action: When clicking on the object, it will change the color of the opaque material. When the toggle is clicked, it will switch the material to transparent, and the color will no longer change.
- Input: 1 target object, two materials (Ex: opaque and transparent)
- Set-up: Place on the object you want to click. Assign the target object and the two materials you want to switch between. You will need to do one script for each object you want to change!

- Action: When clicking on the object, it will change the material of the other objects.
- Input: Target objects (as many as wanted)
- Set-up: Place on the object you want to click. Assign the target objects.

- Action: When clicking on the object, it will turn off the other objects by deactivating them.

