Search Unity

[INFO] Property API

Discussion in 'Entity Component System' started by dzamani, Jul 22, 2018.

  1. dzamani

    dzamani

    Joined:
    Feb 25, 2014
    Posts:
    122
    Hi,

    Looking through things inside the Entities package I saw the com.unity.properties also called Property API. So it looked like a nice codegen tool from what I understand.
    The menu item with the entities package was not working (it was looking for SimpleJSON in the wrong assembly I guess).
    Then I tried the latest version which was also not working after enabling the internal editor window, after commenting out a line it worked.
    Typing the full path to assemblies wasn't fun but somehow it was not detecting anything inside Assembly-CSharp.dll from Library (maybe I took the wrong one), it did work with Unity.Properties.Codegen.dll

    After this much sneaking around, I was wondering, what will be the main purpose of this package ?

    Thanks!
     
  2. SubPixelPerfect

    SubPixelPerfect

    Joined:
    Oct 14, 2015
    Posts:
    224
    for now, as far as i know, it uses a visitor to walk over all comonents on entity to generate inspector gui or serialize to json:

    Code (CSharp):
    1. var container = new EntityContainer(EntityManager, entity);
    2. var json = JsonSerializer.Serialize(ref container);
    last time i was looking at that source there was a notice:
     
    Last edited: Jul 22, 2018