Hello Colleagues,
I've created a custom SharedVariable and I would like to edit the value via the inspector, however, the inspector does not display its name until a right button is pressed.
Is it a bug ?
See some code I use:
[System.Serializable]
public class SharedUnitTask : SharedVariable<UnitTask>
{
public static implicit operator SharedUnitTask(UnitTask
value) { return new SharedUnitTask { mValue = value }; }
}
[TaskCategory("Npc/Unit Task")]
public class MatchesUnitTask : Conditional
{
public SharedUnitTask givenTask;
public SharedUnitTask expectedUnitTaskType;
public override TaskStatus OnUpdate()
{
return TaskStatus.Success;
}
}
I've created a custom SharedVariable and I would like to edit the value via the inspector, however, the inspector does not display its name until a right button is pressed.
Is it a bug ?
See some code I use:
[System.Serializable]
public class SharedUnitTask : SharedVariable<UnitTask>
{
public static implicit operator SharedUnitTask(UnitTask
value) { return new SharedUnitTask { mValue = value }; }
}
[TaskCategory("Npc/Unit Task")]
public class MatchesUnitTask : Conditional
{
public SharedUnitTask givenTask;
public SharedUnitTask expectedUnitTaskType;
public override TaskStatus OnUpdate()
{
return TaskStatus.Success;
}
}