
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
18 lines
848 B
C#
18 lines
848 B
C#
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;
|
|
}
|
|
}
|