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: about 20 hours 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: 2025-02-03T08:47:02.483Z (16 days 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:
Filtering:
### PropertyReference usage
```csharp
public class PropertyReferenceNoFilter : MonoBehaviour
{
public PropertyReference Ref;
}
```
### MonoPropertyReference usage
```csharp
public class PropertyReferenceMonoNoFilter : MonoBehaviour
{
public MonoPropertyReference P;
}
```
## 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.