mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-23 08:48:21 -05:00
26 lines
709 B
C#
26 lines
709 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace TriInspector.Resolvers
|
|
{
|
|
internal sealed class ErrorActionResolver : ActionResolver
|
|
{
|
|
private readonly string _method;
|
|
|
|
public ErrorActionResolver(TriPropertyDefinition propertyDefinition, string method)
|
|
{
|
|
_method = method;
|
|
}
|
|
|
|
public override bool TryGetErrorString(out string error)
|
|
{
|
|
error = $"Method '{_method}' not exists or has wrong signature";
|
|
return true;
|
|
}
|
|
|
|
public override void InvokeForTarget(TriProperty property, int targetIndex)
|
|
{
|
|
Debug.LogException(new InvalidOperationException("Method not exists"));
|
|
}
|
|
}
|
|
} |