Skip to content

Commit 0fd77fe

Browse files
committed
Move InlineEditor to decorators
1 parent d295784 commit 0fd77fe

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Editor.Extras/Drawers/InlineEditorDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using UnityEngine;
77
using Object = UnityEngine.Object;
88

9-
[assembly: RegisterTriAttributeDrawer(typeof(InlineEditorDrawer), TriDrawerOrder.Drawer - 100,
9+
[assembly: RegisterTriAttributeDrawer(typeof(InlineEditorDrawer), TriDrawerOrder.Decorator,
1010
ApplyOnArrayElement = true)]
1111

1212
namespace TriInspector.Drawers

Editor.Samples/Styling/Styling_InlineEditorSample.cs renamed to Editor.Samples/Decorators/Decorators_InlineEditorSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using TriInspector;
22
using UnityEngine;
33

4-
public class Styling_InlineEditorSample : ScriptableObject
4+
public class Decorators_InlineEditorSample : ScriptableObject
55
{
66
[InlineEditor]
77
public Material mat;

Editor.Samples/Styling/Styling_InlineEditorSample.cs.meta renamed to Editor.Samples/Decorators/Decorators_InlineEditorSample.cs.meta

File renamed without changes.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,15 @@ private IEnumerable<TriDropdownItem<Vector3>> GetVectorValues()
248248
[Scene] public string scene;
249249
```
250250

251+
#### InlineEditor
252+
253+
![InlineEditor](https://user-images.githubusercontent.com/26966368/168234617-86a7f500-e635-46f8-90f2-5696e5ae7e63.png)
254+
255+
```csharp
256+
[InlineEditor]
257+
public Material mat;
258+
```
259+
251260
#### DisplayAsString
252261

253262
![DisplayAsString](https://user-images.githubusercontent.com/26966368/224530522-8aa24fbe-4bc7-4290-89d1-d88c5c502e2b.png)
@@ -392,15 +401,6 @@ public Vector3 vec;
392401
public string DynamicTooltip => DateTime.Now.ToShortTimeString();
393402
```
394403

395-
#### InlineEditor
396-
397-
![InlineEditor](https://user-images.githubusercontent.com/26966368/168234617-86a7f500-e635-46f8-90f2-5696e5ae7e63.png)
398-
399-
```csharp
400-
[InlineEditor]
401-
public Material mat;
402-
```
403-
404404
#### InlineProperty
405405

406406
![InlineProperty](https://user-images.githubusercontent.com/26966368/168234909-1e6bec90-18ed-4d56-91ca-fe09118e1b72.png)

0 commit comments

Comments
 (0)