Skip to content

Commit 359c6a2

Browse files
committed
documented UTSpace
1 parent 27fbf88 commit 359c6a2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/src/pages/docs/attributes/attributes-list.md

+16
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,22 @@ public UdonSharpBehaviour[] foldoutTargets;
333333
public string[] foldoutEvents;
334334
```
335335

336+
### UTSpace
337+
338+
`[UTSpace(float space)]`
339+
340+
Similar to Unity's native `[Space(float space)]` but with explicit support for special layout elements like Foldouts
341+
342+
```csharp
343+
[Space(10)] // Regular Unity Space, will create space _inside_ the foldout
344+
[FoldoutGroup("Foldout")]
345+
public float floatInFoldout;
346+
347+
[UTSpace(10)] // UdonToolkit-compatible Space, will create space _before_ the foldout
348+
[FoldoutGroup("Foldout")]
349+
public float floatInFoldout;
350+
```
351+
336352
### OnValueChanged
337353

338354
`[OnValueChanged(string methodName)]`

0 commit comments

Comments
 (0)