Skip to content

hacceuee/unity-diphtheria-toxin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Scenes for JHUAAM Unity Course by Alex

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

Screenshot 2024-12-05 at 3 19 30 PM

Scenes

  1. Blue

    • Click mol surface to turn it transparent
    • Toggle turns entire chain off
  2. Purple

    • Click mol surface to highlight/turn white
    • Toggle turns mol surface transparent
  3. Pink

    • Click mol surface to isolate that chain
    • Toggle turns mol surface transparent
  4. Green

    • Click mol surface turn other surfaces transparent
    • Toggle turns entire chain off

Scripts

ChangeColor_ToggleMaterial

  1. Input: Two materials (Ex: opaque and transparent), two colors (Ex: blue and white)
  2. Set-up: Place on the object you want to click. Assign the two materials you want to switch between, and the two colors.
    Screenshot 2024-12-05 at 3 28 15 PM
    On the toggle/switch, assign the object that you put the script on, and set the action to ChangeColor_ToggleMaterial -> SwitchToggled.
    Screenshot 2024-12-05 at 3 28 33 PM
  3. 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.

ChangeDifferentObjectMaterial

  1. Input: 1 target object, two materials (Ex: opaque and transparent)
  2. 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!
    Screenshot 2024-12-05 at 3 35 03 PM
  3. Action: When clicking on the object, it will change the material of the other objects.

ChangeOtherOnOff

  1. Input: Target objects (as many as wanted)
  2. Set-up: Place on the object you want to click. Assign the target objects.
    Screenshot 2024-12-05 at 3 34 13 PM
  3. Action: When clicking on the object, it will turn off the other objects by deactivating them.

ChangeOwnMaterial

  1. Input: Two materials (Ex: opaque and transparent)
  2. Set-up: Place on the object you want to click. Assign the two materials.
    Screenshot 2024-12-05 at 3 33 44 PM
  3. Action: When clicking on the object, it will change its own material.

Other Set-Up

To make the switches turn off objects:
Screenshot 2024-12-05 at 3 36 59 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors