Search Unity

NativeDisableContainerSafetyRestriction ignored

Discussion in 'Entity Component System' started by snacktime, Oct 24, 2020.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    The scenario is a non standard flow with Job.WithCode modifying a native collection on a managed object. It's complaining that the collection has been declared readonly in the job.

    NativeDisableContainerSafetyRestriction was a temporary fix while I add a layer of indirection to keep it in the safety system, but still it should be honored.