This commit is contained in:
2026-05-19 17:39:03 +07:00
parent bf0ebe447d
commit 5da832bb57
559 changed files with 69543 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
using Rive.Components;
using UnityEditor;
namespace Rive.EditorTools
{
[CustomEditor(typeof(RiveCanvasRenderer), true)]
internal class CanvasPanelRendererEditor : PanelRendererInspector
{
protected override void OnEnable()
{
base.OnEnable();
if (PanelRenderer.RivePanel == null)
{
RivePanel existingPanel = PanelRenderer.GetComponent<RivePanel>();
if (existingPanel != null)
{
PanelRenderer.RivePanel = existingPanel;
}
}
}
}
}