Uploaded May 2019 | Updated November 2026, 3 hours ago
With the Scriptable Render Pipeline in Unity 2019 a new post-processing concept has been introduced. This allows you to define `Volumes` which apply a set of effects across the scene or to a particular portion of the screen. For example changing the amount of saturation, white-balance or bloom to emphasize different parts of the environment.
Unity Scene's in the HDRP (High Definition Render Pipeline) have Volumes by default. These are used to define global default post-processing effects and are done by setting the `IsGlobal` flag of the `Volume` to `true`. We can start having a lot of fun when we disable that flag on our own custom `Volume`s.
To get started with this, you'll need to create a new `GameObject` and add a `Volume` component to it. Disable the `IsGlobal` option to create a localized post-processing effect. Next add a second component to the game object that is a Collider which represents the volume you want to apply the effect in (I don't show this, but you probably want to set this Collider to be a Trigger to avoid randomly colliding with your effects 😅). Once this collider is added the warning to add a collider should disappear - local post-processing effects will not work if you do not define a collider to provide the area of effect.
Now that we have an area defined for our Post Processing Effects add an existing Volume Profile or create a new Profile (this will create a new Asset under your base `Assets/` directory - you probably want to move it somewhere else). Once you have the profile, modify the settings to match the effect you are hoping to achieve by adding or removing Overrides. These override the default render settings of the scene with the values you provide. Disabling the settings in the menu will defer the value to the existing defaults.
After the Profile is configured you should see your effects applied as soon as the camera is moved into the Collider you defined originally. If you would like the transition to be smoother between the effects you may also add some amount of blending. This pads the area outside the area you defined and applies a portion of the effect you configured based on how close to the effect Volume the camera is.
If you do not want to move your camera around to test each of your Volume's you can also toggle the `IsGlobal` flag to temporarily apply the effect globally.
Unity has documented these Volume Overrides more on their GitHub page. Check that out here: github.com/Unity-Technologies/ScriptableRenderPipeline/wiki/Volume-Overrides
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
With the Scriptable Render Pipeline in Unity 2019 a new post-processing concept has been introduced. This allows you to define `Volumes` which apply a set of effects across the scene or to a particular portion of the screen. For example changing the amount of saturation, white-balance or bloom to emphasize different parts of the environment.
Unity Scene's in the HDRP (High Definition Render Pipeline) have Volumes by default. These are used to define global default post-processing effects and are done by setting the `IsGlobal` flag of the `Volume` to `true`. We can start having a lot of fun when we disable that flag on our own custom `Volume`s.
To get started with this, you'll need to create a new `GameObject` and add a `Volume` component to it. Disable the `IsGlobal` option to create a localized post-processing effect. Next add a second component to the game object that is a Collider which represents the volume you want to apply the effect in (I don't show this, but you probably want to set this Collider to be a Trigger to avoid randomly colliding with your effects 😅). Once this collider is added the warning to add a collider should disappear - local post-processing effects will not work if you do not define a collider to provide the area of effect.
Now that we have an area defined for our Post Processing Effects add an existing Volume Profile or create a new Profile (this will create a new Asset under your base `Assets/` directory - you probably want to move it somewhere else). Once you have the profile, modify the settings to match the effect you are hoping to achieve by adding or removing Overrides. These override the default render settings of the scene with the values you provide. Disabling the settings in the menu will defer the value to the existing defaults.
After the Profile is configured you should see your effects applied as soon as the camera is moved into the Collider you defined originally. If you would like the transition to be smoother between the effects you may also add some amount of blending. This pads the area outside the area you defined and applies a portion of the effect you configured based on how close to the effect Volume the camera is.
If you do not want to move your camera around to test each of your Volume's you can also toggle the `IsGlobal` flag to temporarily apply the effect globally.
Unity has documented these Volume Overrides more on their GitHub page. Check that out here: github.com/Unity-Technologies/ScriptableRenderPipeline/wiki/Volume-Overrides
Join the World of Zero Discord Server: discord.gg/hU5Kq2u

 a project for creating an interactive data notebook. Its extremely common among data scientists and python programmers as a way to document an AI model and show the data that is being worked on. We are able to take advantage of that same platform and provide a .NET runtime (.NET interactive) that allows us to compile and run .NET code in these notebooks. This gives us access to many of the same features while allowing us to write our code in C# or another .NET language.
***
* You can learn more about Project Jupyter here: https://jupyter.org/
* You can find more information about working with Jupyter Notebooks in VS Code here: https://code.visualstudio.com/docs/datascience/jupyter-notebooks
* The Jupyter extension for Visual Studio Code is available here: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
* .NET Interactive is open source on GitHub here: https://github.com/dotnet/interactive
***
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Using .NET Interactive and Jupyter Notebooks](https://i.ytimg.com/vi/vlp4B6C81xQ/mqdefault.jpg)
 object. This provides information about the collider you impacted, the point of impact, that objects transform and more. Because of the way values are returned a typical pattern of using Raycasts looks like this:
```csharp
var ray = new Ray(this.transform.position, this.transform.forward);
RaycastHit hit;
if (Physics.Raycast(ray, out hit))
{
objectHit = hit.transform.gameObject;
}
```
### Raycasting Examples
Here is a collection of a few ways you could apply raycasts from my previous projects:
* [Obstacle Avoidance and Steering Algorithms](https://youtu.be/SVazwHyfB7g)
* [Reflecting Projectiles Off Walls](https://youtu.be/GttdLYKEJAM)
* [Adding Gravity and Trajectory Prediction](https://youtu.be/d7pwmO6IS2I)
* [Projectile Penetration and Shooting Through Walls](https://youtu.be/RIru7m73HZA)
* [Help Debugging Rays with Unity Gizmos](https://www.youtube.com/watch?v=USwrSUpIgLI)
### Raycast Alternatives
Unity includes a set of functions that can be used in place of raycasts that use different shapes such as spheres or boxes to detect collisions. These function similarly to raycasts for the most part besides having a different shape.
#### [`SphereCast`](https://docs.unity3d.com/ScriptReference/Physics.SphereCast.html)
`SphereCast` projects a sphere along a ray effectively allowing your raycast to have a radius around itself when detecting objects. This has a few uses but one of the most common is in the development of [third person cameras](https://youtu.be/Cfcr7FtbYQo) to prevent them from clipping into level geometry and ensure they behave more cleanly in tight corners.
#### [`BoxCast`](https://docs.unity3d.com/ScriptReference/Physics.BoxCast.html)
`Boxcast` projects a box along the ray and allow you to test if a box may move without colliding with an object.
#### [`CapsuleCast`](https://docs.unity3d.com/ScriptReference/Physics.CapsuleCast.html)
`CapsuleCast` projects a capsule along a ray and can be useful for detecting things like potential player movement.
#### [`LineCast`](https://docs.unity3d.com/ScriptReference/Physics.Linecast.html)
This functions identically to a `Raycast` however instead of expecting an origin and direction and `LineCast` expects two points and detects if an object is between those two points.
### 2D Raycasts
Variants of the 3D Raycasts and its alternatives can be used when your using Unitys 2D Physics system. These have a different syntax and the two raycasting systems are *not* intercompatible. `Physics.Raycast` will interact with 3D Colliders, `Physics2D.Raycast` will interact with 2D Colliders. To learn more about using Raycasts in a 2D scene see the documentation for [`Physics2D.Raycast`](https://docs.unity3d.com/ScriptReference/Physics2D.Raycast.html).
***
The Raycasting documentation is here: https://docs.unity3d.com/ScriptReference/Physics.Raycast.html
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u
Ive published additional content on my website at https://worldofzero.com
You may find some of the World of Zero Open Source projects at https://github.com/WorldOfZero Detecting Objects with Raycasts in Unity3D](https://i.ytimg.com/vi/vqc9f7HU-Vc/mqdefault.jpg)
![Using Command Prompt to Create a Symbolic Link on Windows
Symbolic Links allow you to create a reference in your file system to another file or directory. This allows you to reference the same file in multiple places without having to physically copy it into each place. This can save storage space and also allows a single change to the file to be seen by every location that links to it as well.
In this video well be taking a look at how to create these Symbolic Links from the Command Prompt using the `mklink` command. In order to use this command youll need to be running Command Prompt as an administrator. `mklink` can be used to create symlinks between files and directories however the syntax is slightly different depending on which youll be using.
When creating a symlink between files you may use:
```cmd
mklink [path] [target]
```
However if youre creating a symlink between directories youll need to include the `/D` flag.
```cmd
mklink /D [path] [target]
```
In both of these examples a new file or directory will be created at the `path` that links to the object located at the `target`.
The `mklink` command also allows you to create hard links and directory junctions as well. You may learn more about using it by running `mklink -?` in your prompt.
If you see the You do not have sufficient privilege to perform this operation error make sure you are in an Administrator Command Prompt.
If you prefer Powershell you can learn how to make a symbolic link in Powershell here: https://youtu.be/_VnONfOgP8M
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Using Command Prompt to Create a Symbolic Link on Windows](https://i.ytimg.com/vi/w2gxWTOPw7U/mqdefault.jpg)






