Search Unity

Bug with initialization of materials on iOS

Discussion in 'Entity Component System' started by minorai, Jan 22, 2019.

  1. minorai

    minorai

    Joined:
    Oct 2, 2017
    Posts:
    1
    Hi,

    I want to report a bug.
    There is a problem with initialization of materials on iOS platform (Standalone works fine).

    An entity with a RenderMesh component will not be rendered in scene if I create it run-time.

    There is a workaround: if I create a dummy game object entity with RenderMesh component in the scene which uses the material beforehand then any other entities that I create run-time with the same material will be rendered. Note that it does not help to create an ordinary object that uses this material. It must be an entity.

    As I mentioned before, this bug only appear on iOS. (everything works fine in Editor and Standalone, both Windows and MacOS).

    Version of the Entity package is 0.0.12-preview.23
    Version of the Hybrid Renderer is 0.0.1-preview.3

    While my work around works for me I wonder if there is a better solution to this?