您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
1.8 KiB
25 行
1.8 KiB
<UXML xmlns="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements">
|
|
<VisualElement>
|
|
<Style src="../Uss/Styles.uss"/>
|
|
<TextElement
|
|
class="scenario__info-box"
|
|
text="Scenarios control the execution flow of your simulation by applying randomization parameters. Make sure to always have only one scenario active within your scene."/>
|
|
<VisualElement name="inspector-properties" style="margin-bottom: 4px;"/>
|
|
<VisualElement class="scenario__dark-viewport" style="padding-left: 16px">
|
|
<Toggle label="Quit On Complete" tooltip="Quit the application when the scenario completes" binding-path="quitOnComplete"/>
|
|
<VisualElement name="constants-container">
|
|
<editor:PropertyField
|
|
binding-path="constants"
|
|
tooltip="A list of parameters for this scenario that will be JSON serialized."/>
|
|
<editor:PropertyField name="configuration-file-name" label="Constants File Name" binding-path="serializedConstantsFileName"/>
|
|
<VisualElement style="flex-direction: row;">
|
|
<Button name="serialize" text="Serialize To Config File" style="flex-grow: 1;"
|
|
tooltip="Serializes scenario constants and randomizer settings to a JSON configuration file"/>
|
|
<Button name="deserialize" text="Deserialize From Config File" style="flex-grow: 1;"
|
|
tooltip="Deserializes scenario constants and randomizer settings from a scenario_configuration.json file located in the Assets/StreamingAssets project folder"/>
|
|
</VisualElement>
|
|
</VisualElement>
|
|
</VisualElement>
|
|
<VisualElement name="randomizer-list-placeholder"/>
|
|
</VisualElement>
|
|
</UXML>
|