Unity - Scripting API: Handles.DrawTexture3DSlice
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public static void DrawTexture3DSlice(Texture texture, Vector3 slicePositions, FilterMode filterMode = FilterMode.Bilinear, bool useColorRamp = false, Gradient customColorRamp = null);
Parameters
| Parameter | Description |
|---|---|
| texture | The volumetric texture to draw. |
| slicePositions | The positions of the texture sampling planes. |
| filterMode | Sets the texture filtering mode to use. |
| useColorRamp | Enables color ramp visualization. |
| customColorRamp | The custom gradient that Unity uses as a color ramp. If this is not specified, Unity uses Google Turbo color ramp. |
Description
Draws a 3D texture using Slice rendering mode in 3D space.
Head scan rendered in slice mode with a custom gradient.