Skip to content

leopripos/LGK.Inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LGK.Inspector

=====================================

This is simple inspector for Unity Game Engine for Svelto.ECS (https://github.com/sebas77/Svelto.ECS)

Feature

  • Svelto.ECS style (without MonoBehaviour)
  • Using Reflection
  • Support field
  • Support property (setter/getter only)
  • Support custom component drawer (like unity custom inspector)
  • Support custom type drawer (like unity property drawer)
  • Support array
  • Support nested type (class and struct)
  • ** Not Support List and Dictionary

** need suggestion how to implement this :D

Usage

public interface IInspectorService
{
    void Register(int id, object[] components, byte modeMask = EInspectorMode.All);

    void Register(string group, int id, object[] components, byte modeMask = EInspectorMode.All);

    void Register(string group, IEntityInfo entityInfo);

    void Unregister(int id);

    void Unregister(string group, int id);
}

public static class InspectorUtility
{
    public static IEntityInfo ExtractEntityInfo(int id, object[] components, byte modeMask);
}

public static class EInspectorMode
{
    public const byte All = byte.MaxValue;
    public const byte Field = 1;
    public const byte Property = 1 << 1;
}

Next Roadmap

  • Support IList<>
  • Support IDictionary<,>
  • Make it more beautiful :)

Examples

Screenshot

Screenshot 1Screenshot 2

About

This is simple inspector for Unity Game Engine for Svelto.ECS (https://github.com/sebas77/Svelto.ECS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages