Is something like this possible with raycast?

Like, you shoot a raycast and it shows a tiny super fast little yellow glint just flying over. If you’ve played Team Fortress 2 and shoot with the “Scout” classes’ shotgun, you will see small yellow particles flying out. How can i do this? (Video: https://www.youtube.com/watch?v=y0A7D2ufqrU)

raycast is used for probing the environment logically rather than rendering effects. You might be able to use a particle system, or trail renderer Unity - Manual: Trail Renderer component

or Line Renderer Unity - Manual: Line Renderer component

or some combination of these to get the effect you want

Now this is exactly what i ment by “raycast”. Those methodes will be ok for shooting actual bullets, like Instantiate(etc,etc,etc);But what i need is something that can render somewhere inbetween the hit point and the shooting point.

In TF2 I’m pretty sure it’s just a particle effect, you could use the default particle texture on stretched billboards and it would look similar. If you use empty game objects with scripted velocity and raycasting for bullets then the line/trail renderer is a simple way to do it, you can fade the alpha and width of the line behind the object.