Search Unity

Ambiguous Schedule() methods in preview.30

Discussion in 'Entity Component System' started by davenirline, Apr 17, 2019.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    I'm upgrading Unity.Entities to preview.30. There's an ambiguous call to Schedule():

    upload_2019-4-17_22-28-12.png

    This can be fixed by fully qualifying the the static function but I don't think that's the intent. The use of extension method is moot in this case.
     
  2. julian-moschuering

    julian-moschuering

    Joined:
    Apr 15, 2014
    Posts:
    529
    The two extension methods have different generic constraints and are not ambiguous as long as you don't inherit from IJobChunk and IJobForEach at the same time.

    I think I had this message somewhere too while updated but it was due to the compiler being somewhat confused by a different error. Try fixing all the other compile errors first.