mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 22:55:06 +08:00
f99930999e
Changes in 1.9.0 broke existing avatars that used animators with different default values than the MA Parameters fields. This change makes overriding the animator defaults require an explicit configuration; this is technically a change which would require a minor version bump, but as this is addressing a major-version-level compatibility break in 1.9.0, we're going to push this out at a minor version this time.
48 lines
3.0 KiB
Plaintext
48 lines
3.0 KiB
Plaintext
<ui:UXML
|
|
xmlns:ui="UnityEngine.UIElements"
|
|
xmlns:engine="UnityEditor.UIElements"
|
|
xmlns:ma="nadena.dev.modular_avatar.core.editor"
|
|
editor-extension-mode="False"
|
|
>
|
|
<ui:VisualElement name="MiniDisplay">
|
|
<ui:Label text="merge_parameter.ui.defaultValue" class="ndmf-tr"/>
|
|
<ma:DefaultValueField/>
|
|
<ui:Label text="merge_parameter.ui.saved" class="ndmf-tr"/>
|
|
<ui:Toggle binding-path="saved"/>
|
|
</ui:VisualElement>
|
|
|
|
<ui:Foldout name="ParameterConfigRoot" text="(placeholder)" value="false">
|
|
<engine:PropertyField binding-path="nameOrPrefix" label="merge_parameter.ui.name" name="f-name" class="ndmf-tr ParameterConfig__isPrefix_falseOnly" />
|
|
<engine:PropertyField binding-path="nameOrPrefix" label="merge_parameter.ui.prefix" name="f-prefix" class="ndmf-tr ParameterConfig__isPrefix_trueOnly" />
|
|
<engine:PropertyField binding-path="remapTo" label="merge_parameter.ui.remapTo" name="remapTo" class="ndmf-tr" />
|
|
<ui:TextField label="merge_parameter.ui.remapTo" text="merge_parameter.ui.remapTo.automatic"
|
|
name="remapToPlaceholder" enabled="false"
|
|
class="ndmf-tr unity-base-field__aligned disabledPlaceholder"/>
|
|
|
|
<!-- this field is not visible until it's moved into the PropertyField below -->
|
|
<ma:DefaultValueField
|
|
name="innerDefaultValueField"
|
|
class="unity-base-field__input unity-property-field__input"
|
|
/>
|
|
|
|
<engine:PropertyField binding-path="defaultValue" name="defaultValueProp" label="merge_parameter.ui.defaultValue" class="ndmf-tr ParameterConfig__isPrefix_falseOnly">
|
|
|
|
</engine:PropertyField>
|
|
|
|
<engine:PropertyField binding-path="saved" label="merge_parameter.ui.saved" class="ndmf-tr ParameterConfig__isPrefix_falseOnly" />"
|
|
|
|
<engine:PropertyField binding-path="internalParameter" label="merge_parameter.ui.internalParameter" name="internalParameter" class="ndmf-tr" />
|
|
<engine:PropertyField binding-path="isPrefix" label="merge_parameter.ui.isPrefix" name="isPrefix" class="ndmf-tr" />
|
|
|
|
<engine:PropertyField binding-path="syncType" label="merge_parameter.ui.syncType"
|
|
class="ParameterConfig__isPrefix_falseOnly ndmf-tr" name="syncType"/>
|
|
<engine:PropertyField binding-path="m_overrideAnimatorDefaults" name="overrideDefaults"
|
|
label="merge_parameter.ui.overrideAnimatorDefaults"
|
|
class="ParameterConfig__isPrefix_falseOnly ndmf-tr"/>
|
|
<!-- <ui:Toggle label="merge_parameter.ui.overrideAnimatorDefaults" value="true" enabled="false" name="overridePlaceholder" class="ParameterConfig__isPrefix_falseOnly ParameterConfig__animatorOnly_trueOnly ndmf-tr" /> -->
|
|
|
|
<engine:PropertyField binding-path="localOnly" label="merge_parameter.ui.localOnly" class="ParameterConfig__isPrefix_falseOnly ParameterConfig__animatorOnly_falseOnly ndmf-tr" />
|
|
</ui:Foldout>
|
|
|
|
</ui:UXML>
|