mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2026-10-20 21:15:47 +02:00
79 files changed
+57
-20
No files matched your search
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f549199d6eac96943ae073e003f12aa3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f124bd3bbd4e5e44882fcc7ca4bbfd89
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -16,3 +16,28 @@ Future plans:
|
||||
Possibly
|
||||
- copy / paste.
|
||||
- menu with searchbar.
|
||||
|
||||
## Installation
|
||||
Use the + inside the Package Manager window and add this URL:
|
||||
```json
|
||||
"com.textus-games.serialized-reference-ui": "https://github.com/popcron/UnitySerializedReferenceUI.git"
|
||||
```
|
||||
Or add id to your `packages.json` file manually (located inside the project's Packages folder).
|
||||
|
||||
## Example
|
||||

|
||||
```cs
|
||||
[Serializable]
|
||||
public class Slot
|
||||
{
|
||||
[SerializeReference, SerializeReferenceButton]
|
||||
public Item item;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class Item {}
|
||||
public class Metal : Item {}
|
||||
public class Wood : Item {}
|
||||
```
|
||||
|
||||
For more examples, this package contains two Samples that can be imported into your project.
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05ba0cd389296cf44af17c4e8362fb75
|
||||
guid: fd7a1ed385c62e3499468681006ce64e
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "com.textus-games.serialized-reference-ui",
|
||||
"version": "1.0.0",
|
||||
"displayName": "Serialize Reference UI",
|
||||
"description": "The UI for Unity's SerealizedReference attribute. It allows changing the instance type of a field right in the editor.",
|
||||
"unity": "2019.3",
|
||||
"keywords":
|
||||
[
|
||||
"serialization",
|
||||
"editor",
|
||||
"utility"
|
||||
],
|
||||
"samples":
|
||||
[
|
||||
{
|
||||
"displayName": "Animal world Assembly",
|
||||
"path": "Samples~/ExampleAnimalWorldAssembly"
|
||||
},
|
||||
{
|
||||
"displayName": "Usage from different Assembly",
|
||||
"path": "Samples~/ExampleOfUsageFromDifferentAssembly"
|
||||
}
|
||||
],
|
||||
"author":
|
||||
{
|
||||
"name": "Textus Games",
|
||||
"url": "https://github.com/TextusGames"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45856e53c605df64baf0e89751741df7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
guid: bea6fab46aed07d488468ef87df6c1f5
|
||||
PackageManifestImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
Reference in new issue
Block a user