How to make moving light spots

Hello everyone,

I am really new to unity and I need help with a project. I am simulating the propagation of an action potential in a neuron (3D). I built a 3D model of the neuron but I can’t figure out how to simulate the propagation of the action potential. The way I want to do it is as follows: produce a light spot in a portion of the neuron and make it move along the neuron. So basecally I want to know how to produce a light spot and makke it move in a predefined path.

Thank you in advance for any kind of help xD

Hi robalo,

Your post would be better suited in a different forum, as this forum is for virtual-reality-specific questions.

To produce a “light” spot like you describe, you’ll want to create a sphere GameObject from the “GameObject->Create Other” menu, and change the shader to one with a lot of “Emission” and/or “Bloom”. Try “Particles/Additive (soft)”. Unity comes with some built-in shaders, but you can find more online.

There are 2 ways to create the movement you describe.

  1. Animation (probably easier). Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn
  2. Create a MonoBehaviour script to do it. Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn