Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/JonasDeM/EntitySelection

A minimal solution for selecting entities in the unity sceneview. Useful for users using older versions of the Unity entities package.
https://github.com/JonasDeM/EntitySelection

dots ecs unity3d

Last synced: 10 days ago
JSON representation

A minimal solution for selecting entities in the unity sceneview. Useful for users using older versions of the Unity entities package.

Lists

README

        

*With Unity Entities 1.0 dropping at the end of 2022 this package has become mostly redundant.*
*It has served its purpose since 2019, but I won't be updating this package anymore.*
*I'm leaving it online anyway since the implementation can still be useful for users using older versions of the entities package or as a reference for GPU Picking during gameplay.*

# EntitySelection

[![openupm](https://img.shields.io/npm/v/io.github.jonasdem.entityselection?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/io.github.jonasdem.entityselection/)

A small package that enables you to select entities in the unity sceneview.
It works both in play mode & edit mode.
![EntitySelectionGif](https://github.com/JonasDeM/JonasDeM.github.io/blob/master/Media/SelectionShowOff4.gif)

## How to select
0. (Optional: Enable DOTS>LivelinkMode>LiveConversionInEditMode to have all entities in edit mode.)
1. Make sure your focus is on the sceneview (not gameview)
2. Point to the entity with mouse pointer
3. Press the '1' key (Non Numpad)
=> Inspector window should show all info for entity.

## How to get this package for your own project

### Install via git url

1. Click the green "Clone or download" button and copy the url.
2. In Unity go to Window>Package Manager and Press the + sign in the left-top corner of the Package Manager window.
3. Select "Add package from git URL...", Paste the URL and press "Add".
Done!

Or manually add the dependency to the Packages/manifest.json file.

```
{
"dependencies": {
"io.github.jonasdem.entityselection": "https://github.com/JonasDeM/EntitySelection.git"
}
}
```

### Install via OpenUPM

The package is available on the [openupm registry](https://openupm.com/). You can install it via [openupm-cli](https://github.com/openupm/openupm-cli#openupm-cli).

```
openupm add io.github.jonasdem.entityselection
```

## Contribution
BugFixes and UX improvements are appreciated.
Performance Improvements are welcome, since I'm not prioritizing those.
No setup should ever be needed.

Thanks to [Tom](https://github.com/Moosichu) for making this repo a package.

## 2019.2 branch
If you want a 2019.2 (And probably 2019.1) compatible version, use the 2019.2 branch.
Use "https://github.com/JonasDeM/EntitySelection.git#2019.2" in the "Install via git url" steps.