A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sschmid/Entitas/wiki/Unity-integration below:

Unity integration · sschmid/Entitas Wiki · GitHub

Entitas.Unity.CodeGenerator

Entitas.Unity.CodeGenerator extends Unity with a menu item that generates code with a single click.

It also plugs into the Entitas preferences, where you can specify the folder path within which to save the generated files. You can specify multiple contexts, and the corresponding Contexts and ContextAttributes will be generated for you.

Entitas.Unity.VisualDebugging

Visual Debugging enables you to actually see and inspect all of your entities in the Unity Editor. Use the generated Contexts.context or add ContextObserver to your context. That's it!

#if (!ENTITAS_DISABLE_VISUAL_DEBUGGING && UNITY_EDITOR)

var context = Contexts.sharedInstance.game;
var contextObserver = new Entitas.VisualDebugging.Unity.ContextObserver(context);
Object.DontDestroyOnLoad(contextObserver.gameObject);

#endif

Once you use the ContextObserver, the context and their entities will automatically display in the hierarchy.

Although entities are not GameObjects and components are not MonoBehaviours, you can inspect them as if they were. All components of the selected entity are listed, and all of their fields are exposed. You can manipulate or remove components at runtime, and even destroy their root entity. All default Unity drawers are supported, and you can easily create your own ITypeDrawer to draw custom objects. Take a look at these implementations

When you select multiple entities, you can manually destroy some of them or batch destroy all of them.

Entitas.Unity.VisualDebugging also plugs into the Entitas preferences, where you can specify the folders in which to save the generated IDefaultInstanceCreator and ITypeDrawer implementations.

When using DebugSystems instead of Systems, you can easily monitor all your systems and more easily identify slow systems.

Give it a try and check out the example projects


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4