#[1.0.0-pre.65] IJobEntity managed data compatibility issue
1 messages · Page 1 of 1 (latest)
UnityException: get_isActiveAndEnabled can only be called from the main thread.
can you show code because this doesn't sound like it's running main thread
partial struct UpdatePlayerGUIJob : IJobEntity
{
void Execute(RefRO<HealthStateComponent> healthState)
{
var instance = PlayerGUI.Instance;
instance.healthText.SetText("{0:0}", healthState.ValueRO.health);
}
}
more the schedule code