Class RuntimeUtilities
Inheritance
System.Object
RuntimeUtilities
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Syntax
public static class RuntimeUtilities
Properties
blackTexture
Declaration
public static Texture2D blackTexture { get; }
Property Value
Type |
Description |
Texture2D |
|
copyMaterial
Declaration
public static Material copyMaterial { get; }
Property Value
Type |
Description |
Material |
|
copySheet
Declaration
public static PropertySheet copySheet { get; }
Property Value
copyStdMaterial
Declaration
public static Material copyStdMaterial { get; }
Property Value
Type |
Description |
Material |
|
fullscreenTriangle
Declaration
public static Mesh fullscreenTriangle { get; }
Property Value
isAndroidOpenGL
Declaration
public static bool isAndroidOpenGL { get; }
Property Value
Type |
Description |
System.Boolean |
|
isLinearColorSpace
Declaration
public static bool isLinearColorSpace { get; }
Property Value
Type |
Description |
System.Boolean |
|
isSinglePassStereoEnabled
Declaration
public static bool isSinglePassStereoEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
isVREnabled
Declaration
public static bool isVREnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
scriptableRenderPipelineActive
Declaration
public static bool scriptableRenderPipelineActive { get; }
Property Value
Type |
Description |
System.Boolean |
|
transparentTexture
Declaration
public static Texture2D transparentTexture { get; }
Property Value
Type |
Description |
Texture2D |
|
whiteTexture
Declaration
public static Texture2D whiteTexture { get; }
Property Value
Type |
Description |
Texture2D |
|
Methods
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, RenderTargetIdentifier, PropertySheet, Int32, Boolean)
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, RenderTargetIdentifier depth, PropertySheet propertySheet, int pass, bool clear = false)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
RenderTargetIdentifier |
source |
|
RenderTargetIdentifier |
destination |
|
RenderTargetIdentifier |
depth |
|
PropertySheet |
propertySheet |
|
System.Int32 |
pass |
|
System.Boolean |
clear |
|
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Boolean)
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, bool clear = false)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
RenderTargetIdentifier |
source |
|
RenderTargetIdentifier |
destination |
|
System.Boolean |
clear |
|
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, PropertySheet, Int32, Boolean)
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, PropertySheet propertySheet, int pass, bool clear = false)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
RenderTargetIdentifier |
source |
|
RenderTargetIdentifier |
destination |
|
PropertySheet |
propertySheet |
|
System.Int32 |
pass |
|
System.Boolean |
clear |
|
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier[], RenderTargetIdentifier, PropertySheet, Int32, Boolean)
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier[] destinations, RenderTargetIdentifier depth, PropertySheet propertySheet, int pass, bool clear = false)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
RenderTargetIdentifier |
source |
|
RenderTargetIdentifier[] |
destinations |
|
RenderTargetIdentifier |
depth |
|
PropertySheet |
propertySheet |
|
System.Int32 |
pass |
|
System.Boolean |
clear |
|
BlitFullscreenTriangle(Texture, RenderTexture, Material, Int32)
Declaration
public static void BlitFullscreenTriangle(Texture source, RenderTexture destination, Material material, int pass)
Parameters
Type |
Name |
Description |
Texture |
source |
|
RenderTexture |
destination |
|
Material |
material |
|
System.Int32 |
pass |
|
CopyTexture(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier)
Declaration
public static void CopyTexture(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination)
Parameters
Type |
Name |
Description |
CommandBuffer |
cmd |
|
RenderTargetIdentifier |
source |
|
RenderTargetIdentifier |
destination |
|
CreateIfNull<T>(ref T)
Declaration
public static void CreateIfNull<T>(ref T obj)where T : class, new ()
Parameters
Type |
Name |
Description |
T |
obj |
|
Type Parameters
Destroy(Object)
Declaration
public static void Destroy(Object obj)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
obj |
|
DestroyProfile(PostProcessProfile, Boolean)
Declaration
public static void DestroyProfile(PostProcessProfile profile, bool destroyEffects)
Parameters
DestroyVolume(PostProcessVolume, Boolean)
Declaration
public static void DestroyVolume(PostProcessVolume volume, bool destroySharedProfile)
Parameters
Exp2(Single)
Declaration
public static float Exp2(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
GenerateJitteredProjectionMatrixFromOriginal(PostProcessRenderContext, Matrix4x4, Vector2)
Declaration
public static Matrix4x4 GenerateJitteredProjectionMatrixFromOriginal(PostProcessRenderContext context, Matrix4x4 origProj, Vector2 jitter)
Parameters
Returns
Type |
Description |
Matrix4x4 |
|
GetAllAssemblyTypes()
Declaration
public static IEnumerable<Type> GetAllAssemblyTypes()
Returns
Type |
Description |
IEnumerable<System.Type> |
|
GetAllSceneObjects<T>()
Declaration
public static IEnumerable<T> GetAllSceneObjects<T>()where T : Component
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
GetAttribute<T>(Type)
Declaration
public static T GetAttribute<T>(this Type type)where T : Attribute
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type Parameters
GetFieldPath<TType, TValue>(Expression<Func<TType, TValue>>)
Declaration
public static string GetFieldPath<TType, TValue>(Expression<Func<TType, TValue>> expr)
Parameters
Type |
Name |
Description |
Expression<System.Func<TType, TValue>> |
expr |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TType |
|
TValue |
|
GetJitteredOrthographicProjectionMatrix(Camera, Vector2)
Declaration
public static Matrix4x4 GetJitteredOrthographicProjectionMatrix(Camera camera, Vector2 offset)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
Vector2 |
offset |
|
Returns
Type |
Description |
Matrix4x4 |
|
GetJitteredPerspectiveProjectionMatrix(Camera, Vector2)
Declaration
public static Matrix4x4 GetJitteredPerspectiveProjectionMatrix(Camera camera, Vector2 offset)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
Vector2 |
offset |
|
Returns
Type |
Description |
Matrix4x4 |
|
GetMemberAttributes<TType, TValue>(Expression<Func<TType, TValue>>)
Declaration
public static Attribute[] GetMemberAttributes<TType, TValue>(Expression<Func<TType, TValue>> expr)
Parameters
Type |
Name |
Description |
Expression<System.Func<TType, TValue>> |
expr |
|
Returns
Type |
Description |
System.Attribute[] |
|
Type Parameters
Name |
Description |
TType |
|
TValue |
|
GetParentObject(String, Object)
Declaration
public static object GetParentObject(string path, object obj)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Object |
obj |
|
Returns
Type |
Description |
System.Object |
|
IsResolvedDepthAvailable(Camera)
Declaration
public static bool IsResolvedDepthAvailable(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
Returns
Type |
Description |
System.Boolean |
|
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.