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: 3 months ago
JSON representation
A minimal solution for selecting entities in the unity sceneview. Useful for users using older versions of the Unity entities package.
- Host: GitHub
- URL: https://github.com/JonasDeM/EntitySelection
- Owner: JonasDeM
- License: mit
- Created: 2019-10-09T17:07:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T12:32:35.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T22:42:20.850Z (3 months ago)
- Topics: dots, ecs, unity3d
- Language: C#
- Homepage:
- Size: 73.2 KB
- Stars: 73
- Watchers: 8
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-opensource-unity - EntitySelection - A minimal solution for selecting entities in the unity sceneview. (Open Source Packages / DOTS)
- awesome-unity3d - EntitySelection - A minimal solution for selecting entities in the unity sceneview (Open Source Repositories / DOTS)
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®istry_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.