initial commit

This commit is contained in:
cblech
2025-01-04 13:29:07 +01:00
commit 22f67f4347
124 changed files with 12157 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
using UnityEngine;
// OutlineFx © NullTale - https://x.com/NullTale/
namespace OutlineFx
{
[ExecuteAlways] [DisallowMultipleComponent]
public abstract class Outline : MonoBehaviour
{
internal Renderer _renderer;
public abstract Color Color {get; set; }
// =======================================================================
private void OnEnable()
{
_renderer = GetComponent<Renderer>();
}
private void OnWillRenderObject()
{
#if UNITY_EDITOR
if (Application.isEditor && Equals(_renderer, null) == false)
{
if (TryGetComponent<Renderer>(out _renderer) == false)
return;
}
#endif
OutlineFxFeature.Render(this);
}
}
}