我有这个团结活动
[Serializable]
public class UnityEventString : UnityEvent<string>
{
}
在此使用哪个MonoBehaviour
public class EventListenerString : MonoBehaviour, IEventListener<string>
{
//some more code
public EventString Event;
public UnityEventString Response;
//Some more code
}
问题是,它没有在检查器中将此方法显示为动态。
public void Show(string key)
{
_Show(Animator.StringToHash(key));
}
public void Hide(string key)
{
_Hide(Animator.StringToHash(key));
}
I used to use this pattern for my other events too, and they worked fine until today.
Currently, there are the right methods in the inspector, from earlier this week when i programmed. But today everything stopped working for that.
它还停止了对带有测试的普通测试对象的工作MonoBehaviour
仅用一种方法。
But it still works with that one here
这里发生了什么?
我认为 Unity 2019.2.5 有问题,到 2019.2.4 为我解决了这个问题,所有动态事件都回来了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)