You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
848 B
17 lines
848 B
namespace UnityEngine.Rendering.Universal |
|
{ |
|
public static class ComponentUtility |
|
{ |
|
/// <summary> Check if the provided camera is compatible with Universal Render Pipeline </summary> |
|
/// <param name="camera">The Camera to check</param> |
|
/// <returns>True if it is compatible, false otherwise</returns> |
|
public static bool IsUniversalCamera(Camera camera) |
|
=> camera.GetComponent<UniversalAdditionalCameraData>() != null; |
|
|
|
/// <summary> Check if the provided light is compatible with Universal Render Pipeline </summary> |
|
/// <param name="light">The Light to check</param> |
|
/// <returns>True if it is compatible, false otherwise</returns> |
|
public static bool IsUniversalLight(Light light) |
|
=> light.GetComponent<UniversalAdditionalLightData>() != null; |
|
} |
|
}
|
|
|