Search Unity

'GameObjectConversionMappingSystem' not found.

Discussion in 'Entity Component System' started by CloudJ, Jun 12, 2019.

  1. CloudJ

    CloudJ

    Joined:
    May 13, 2019
    Posts:
    6
    I download EntityComponentSystemSamples and it works well in my computer ,when I build it in Android,If I set Stripping Level to High in ProjectSetting, It shows an error :
    MissingMethodException: Constructor on type 'GameObjectConversionMappingSystem' not found.
    [Job]ComponentSystem GameObjectConversionMappingSystem must be mentioned in a link.xml file, or annotated with a [Preserve] attribute to prevent its constructor from being stripped.
    I want to know how to write the link.xml to avoid this error ? I use 2019.1.4f1 and EntityVersion is 0.0.28.
     
  2. JooleanLogic

    JooleanLogic

    Joined:
    Mar 1, 2018
    Posts:
    447
    You need something like this which I just copied out of one of the samples I think. This works for me on Android but if you're using other packages like physics, you'll need to add those as well. Add it to the Assets folder.

    link.xml
     
    oAzuehT and CloudJ like this.
  3. CloudJ

    CloudJ

    Joined:
    May 13, 2019
    Posts:
    6
    It works well ! Thank you so much !