-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: StateTimeline inspector using UI Toolkit
- Loading branch information
1 parent
bc090d3
commit 89c78a1
Showing
9 changed files
with
100 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
Assets/HnSF/Editor/StateTimelineEditor/statetimeline_inspector_uxml.uxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="True"> | ||
<ui:Button text="Open Editor" display-tooltip-when-elided="true" name="OpenEditor" /> | ||
<ui:Label text="General" display-tooltip-when-elided="true" name="Label-General" style="font-size: 24px; -unity-font-style: bold; -unity-text-align: upper-center;" /> | ||
<ui:TextField picking-mode="Ignore" label="State Name" value="filler text" text="filler text" binding-path="stateName" name="StateName" /> | ||
<ui:Toggle label="Use Base State?" binding-path="useBaseState" name="UseBaseState" /> | ||
<uie:ObjectField label="Base State" allow-scene-objects="false" name="BaseState" binding-path="baseState" /> | ||
<uie:IntegerField label="State Length" value="60" name="StateLength" binding-path="totalFrames" is-delayed="true" /> | ||
<ui:Label text="Auto" display-tooltip-when-elided="true" name="Label-Auto" style="font-size: 24px; -unity-font-style: bold; -unity-text-align: upper-center;" /> | ||
<ui:Toggle label="Auto Increment Frames" binding-path="autoIncrement" name="AutoIncrement" /> | ||
<ui:Toggle label="Auto Loop" binding-path="autoLoop" name="AutoLoop" /> | ||
<uie:IntegerField label="Auto Loop Frame" value="1" name="AutoLoopFrame" binding-path="autoLoopFrame" /> | ||
<ui:Foldout text="Default Inspector" name="Default_Inspector" value="false" /> | ||
</ui:UXML> |
10 changes: 10 additions & 0 deletions
10
Assets/HnSF/Editor/StateTimelineEditor/statetimeline_inspector_uxml.uxml.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters