- Home /
Question by
Ak47-forever · Apr 06, 2019 at 06:17 PM ·
scripting problemeditor
Unity Editor not showing my partial class in inspector when i try to assign field()
I have a partial class Enemy
public partial class Enemy : MonoBehaviour, ITimeScalable, ILiveable, IEnemyOperationHandler
{
//some code
}
and some constants also partial
public partial class Enemy
{
public const int NONE = 0;
public const int READING = 1;
public const int CHASING = 2;
public const int WAITING_FOR_CLEARANCE = 3;
public const int ATTACKING = 4;
public const int DAMAGING = 5;
}
I have a prefab with that script attached on it. when i try to assign that by clicking on field nothing shows. Can anyone please help me with this?
Thank you very much.
screenshot-6.png
(89.7 kB)
Comment