using Entitas;
using UnityEngine;
[Game, Input, Ui]
public class DestroyedComponent : IComponent
{
}
public interface IDestroyEntity : IEntity, IDestroyed { }
Hi, I just don't know why editor says "IDestroyed" is not define, and I also not find it in interface folder.
I already generate code after I define "DestroyedComponent"
Greetings, the code generator has generated "I{YourComponentName}Entity" for you. In fact, it will generate such an interface for whatever component defined in multiple contexts. I believe that's the thing you want instead of "IDestroyed".
Hi @moixxsyc - I wrote that tutorial quite a while ago, and back then the generated interface used to be I{ComponentName}, but now it is I{ComponentName}Entity. I have updated the tutorial just now to reflect these changes.
Sorry for the confusion this has caused.
@zhuchun thanks锛宼hat help me alot ~
@FNGgames thanks for your help~
Most helpful comment
Hi @moixxsyc - I wrote that tutorial quite a while ago, and back then the generated interface used to be
I{ComponentName}, but now it isI{ComponentName}Entity. I have updated the tutorial just now to reflect these changes.Sorry for the confusion this has caused.