Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k0dep/type-inspector
🔬Package for unity3d which allow select type and members from editor inspector window
https://github.com/k0dep/type-inspector
editor-extension inspector originer reflection unity-editor unity3d unity3d-npm-package unity3d-plugin upm-package
Last synced: 2 months ago
JSON representation
🔬Package for unity3d which allow select type and members from editor inspector window
- Host: GitHub
- URL: https://github.com/k0dep/type-inspector
- Owner: k0dep
- License: mit
- Created: 2019-03-09T13:56:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-16T22:55:05.000Z (about 5 years ago)
- Last Synced: 2024-09-30T18:02:52.036Z (3 months ago)
- Topics: editor-extension, inspector, originer, reflection, unity-editor, unity3d, unity3d-npm-package, unity3d-plugin, upm-package
- Language: C#
- Homepage:
- Size: 492 KB
- Stars: 42
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TypeInspector
Package for unity3d which allow select type and members from editor inspector.## Features
* Type inspector
* Property inspector
* GameObject component members inspector
* Type, members and object filtering using attributes
* Select method on GameObject/MonoBehaviour
## Examples
All examples place in `%PackageFolder%/Examples`. There is example scene and MonoBehaviour components with usage this package.### TypeReference usage
```csharp
public class TypeReferenceExample : MonoBehaviour
{
public TypeReference type;
[TypeFilter(nameof(FilterTypePredicate))]
public TypeReference typeFiltered;
public bool FilterTypePredicate(Type type)
{
return type.FullName.StartsWith("TypeInspector");
}public void Start()
{
Debug.Log(typeFiltered.FullName);
}
}
```
All types:
![TypeReference gif example](Docs/TypeReference.gif)Filtering:
![TypeReference gif example](Docs/TypeReference_filtering.png)### PropertyReference usage
```csharp
public class PropertyReferenceNoFilter : MonoBehaviour
{
public PropertyReference Ref;
}
```
![PropertyReference gif example](Docs/PropertyReference_select.gif)### MonoPropertyReference usage
```csharp
public class PropertyReferenceMonoNoFilter : MonoBehaviour
{
public MonoPropertyReference P;
}
```
![MonoPropertyReference gif example](Docs/MonoPropertyReference_select.gif)## Using
For start using this package add lines into `./Packages/manifest.json` like next sample:
```json
{
"dependencies": {
"type-inspector": "https://github.com/k0dep/type-inspector.git#1.0.0"
}
}
```
Instead `#1.0.0` paste version what you need.