Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

How to get LitMaterialBGFX?

Discussion in 'Project Tiny' started by gtk2k, Apr 10, 2021.

  1. gtk2k

    gtk2k

    Joined:
    Aug 13, 2014
    Posts:
    253
    var materialBGFX = EntityManager.GetComponentData<LitMaterialBGFX>(materialEntity);

    I occured error.
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Hi,
    why do you want to get LitMaterialBGFX?
    and what error are you getting?
     
  3. gtk2k

    gtk2k

    Joined:
    Aug 13, 2014
    Posts:
    253
    I want texture handle (pointer).