Hi,
I made a new WorldObjectComponent in C# like this :
C#
using ....
using ....
using ....
namespace Eco.Gameplay.Components
{
[Serialized]
public class MyComponent : WorldObjectComponent
{
public override void Initialize()
{
base.Initialize();
// ... //
}
public override void Tick()
{
base.Tick();
// ... //
}
public static bool AnyFunction(int AnyVariable)
{
// ... //
}
}
}
Alles anzeigen
I tried to put this .cs file (non-compiled) in Mods folder.. and it works fine. I can use my component in the Streetlamp.cs for exemple by adding :
But now, i want to compile my component in a DLL... and when i put this DLL in Mods folder... Streetlamp.cs return an error saying "MyComponent" is unknown...
If i use MyComponent in another Object i compiled in a DLL (my FloorLamp for exemple) it works fine !...
My question is : Is there a way to make it working ?