2025-01-02 12:15:45 +08:00

40 lines
785 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering.Universal;
using System.Linq;
public class OutLinePam
{
public Renderer[] renders;
public Color color;
public float strength;
}
public class OutLineVariable :MonoBehaviour
{
[ReadOnly]
public UniversalRendererData rendererData;
private OutLine outLine;
public OutLine OutLine
{
get
{
if (outLine == null)
{
rendererData = Resources.Load<UniversalRendererData>("AVP8_UniversalRenderPipelineAsset_Renderer");
outLine = rendererData.rendererFeatures.OfType<OutLine>().FirstOrDefault();
}
return outLine;
}
}
}