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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Serialized string or nativestring in inspector [GenerateAuthoringComponent]

Discussion in 'Entity Component System' started by toomasio, Jan 21, 2020.

  1. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Hello,

    I am trying to get a string to be serialized in the new [GenerateAuthoringComponent] workflow but strings do not seem to be working. Is there some way to serialize strings in the inspector using the new workflow? Or do we still have to use monobehaviour?

    Thanks,
     
    Vlasov_VV and tonialatalo like this.
  2. Vlasooff

    Vlasooff

    Joined:
    Nov 8, 2019
    Posts:
    2
    I also faced the same problem
     
    Vlasov_VV likes this.
  3. Vlasov_VV

    Vlasov_VV

    Joined:
    Mar 9, 2018
    Posts:
    6
    And i also faced the same problem
     
  4. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,554
    You still need to use monobehaviour and IConvertGameObjectToEntity for string as of 0.6.0
     
    toomasio likes this.