com.playdarium.unity.entitas-redux

3.0.3 • Public • Published

JCMG Entitas Redux

NPM package License: MIT

Installing

Using the native Unity Package Manager introduced in 2017.2, you can add this library as a package by modifying your manifest.json file found at /ProjectName/Packages/manifest.json to include it as a dependency. See the example below on how to reference it.

Install via OpenUPM

The package is available on the npmjs registry.

Add registry scope

{
  "dependencies": {
    "com.playdarium.unity.entitas-redux": "x.x.x"
  },
  "scopedRegistries": [
    {
      "name": "Playdarium",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.playdarium.unity"
      ]
    }
  ]
}

Add package in PackageManager

Open Window -> Package Manager choose Packages: My Regestries and install package

Install via GIT URL

"com.playdarium.unity.entitas-redux": "https://gitlab.com/pd-packages/entitas-redux.git#upm"

Entitas Redux

About

This version of Entitas Redux is a reworked version of EntitasRedux with a sole focus on Unity.

Requirements

  • Min Unity Version: 2022.3

Installing Entitas Redux and Getting Started

Context creation

To create your first Context in assembly, you need to declare it using attribute.

Example:

using JCMG.EntitasRedux;

public sealed partial class MyFirstAttribute : ContextAttribute
{
}

After code analysis detects your attribute, it's automatically generating all implementations for Context and Entity classes.

Component creation

Analyzer detects components by name of a class or base type it must end with Component and have one or greater attributes

Simple component

Examples:

using JCMG.EntitasRedux;

[MyFirst]
public class MyFirstComponent : IComponent
{
}

[MyFirst]
public class MySecond : IComponent
{
}

Inherited component

Examples:

using JCMG.EntitasRedux;

[MyFirst]
public class InheritedComponent : MyFirstComponent
{
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i com.playdarium.unity.entitas-redux

      Weekly Downloads

      9

      Version

      3.0.3

      License

      MIT

      Unpacked Size

      2.61 MB

      Total Files

      271

      Last publish

      Collaborators

      • elestrago