Upload project files
This commit is contained in:
34
Editor/Cloner/View/Effector/PlainEffectorEditor.cs
Normal file
34
Editor/Cloner/View/Effector/PlainEffectorEditor.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Misaki.ArtTool;
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
[CustomEditor(typeof(PlainEffector))]
|
||||
public class PlainEffectorEditor : Editor
|
||||
{
|
||||
[SerializeField]
|
||||
private VisualTreeAsset visualTreeAsset = default;
|
||||
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
var root = new VisualElement();
|
||||
|
||||
var visualAsset = visualTreeAsset.Instantiate();
|
||||
visualAsset.dataSource = serializedObject.targetObject;
|
||||
|
||||
root.Add(visualAsset);
|
||||
root.TrackSerializedObjectValue(serializedObject, OnValueChanged);
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
private void OnValueChanged(SerializedObject serializedObject)
|
||||
{
|
||||
var plainEffector = serializedObject.targetObject as PlainEffector;
|
||||
plainEffector.propertyChanged.Invoke(plainEffector, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Editor/Cloner/View/Effector/PlainEffectorEditor.cs.meta
Normal file
13
Editor/Cloner/View/Effector/PlainEffectorEditor.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: caa823f123cfb7349a1e8a1529978383
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- visualTreeAsset: {fileID: 9197481963319205126, guid: 5b5f086164d34b04d88b57abdb546075,
|
||||
type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
102
Editor/Cloner/View/Effector/PlainEffectorView.uxml
Normal file
102
Editor/Cloner/View/Effector/PlainEffectorView.uxml
Normal file
@@ -0,0 +1,102 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<Style src="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ClonerEditorStyle.uss?fileID=7433441132597879392&guid=216b892cd94cc624da01dc4947facdcb&type=3#ClonerEditorStyle" />
|
||||
<engine:VisualElement data-source-type="Misaki.ArtTool.PlainEffector, Misaki.ArtTool" style="flex-grow: 1;">
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Effector" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:Slider label="Strength" value="42" high-value="1" fill="true" show-input-field="true">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="strength" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:Slider>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Parameter" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:EnumField label="Transform Space" value="Center" type="Misaki.ArtTool.TransformSpace, Misaki.ArtTool">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="transformSpace" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:DropdownField label="Position" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnablePosition" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:Vector3Field label="Position Offset">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="position" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnablePosition" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
<engine:DropdownField label="Rotation" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnableRotation" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:Vector3Field label="Rotation Offset">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="rotation" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnableRotation" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
<engine:DropdownField label="Scale" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnableScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:DropdownField label="Absolute Scale" choices="Disable,Enable" index="0">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isAbsoluteScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:DropdownField label="Uniform Scale" choices="Disable,Enable" index="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isUniformScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:Vector3Field label="Scale Offset" value="1,1,1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="scale" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
<engine:DataBinding property="style.display" data-source-path="isUniformScale" binding-mode="ToTarget" source-to-ui-converters="InverseBoolToDisplayConverter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<engine:FloatField label="Scale Offset" value="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="uniformScale" binding-mode="TwoWay" />
|
||||
<engine:DataBinding property="style.display" data-source-path="isUniformScale" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:FloatField>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnableScale" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Fields" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:VisualElement style="flex-grow: 1; flex-direction: row; margin-top: 4px; margin-right: 4px; margin-bottom: 8px; margin-left: 4px;">
|
||||
<engine:Label text="Enable" enable-rich-text="false" style="font-size: 9px; -unity-text-align: middle-left; margin-left: 4px;" />
|
||||
<engine:Label text="Field" enable-rich-text="false" style="flex-grow: 1; margin-left: 12px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
<engine:Label text="Blending" enable-rich-text="false" style="width: 100px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
</engine:VisualElement>
|
||||
<engine:ListView reorderable="true" reorder-mode="Animated" binding-source-selection-mode="AutoAssign" show-add-remove-footer="true" show-border="true" item-template="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ItemTemplate/FieldItemTemplate.uxml?fileID=9197481963319205126&guid=d432ee1ae85c33d4abf54b61fc8a45f5&type=3#FieldItemTemplate" fixed-item-height="45">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="itemsSource" data-source-path="fieldDataList" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:ListView>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
10
Editor/Cloner/View/Effector/PlainEffectorView.uxml.meta
Normal file
10
Editor/Cloner/View/Effector/PlainEffectorView.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b5f086164d34b04d88b57abdb546075
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
34
Editor/Cloner/View/Effector/PushApartEffectorEditor.cs
Normal file
34
Editor/Cloner/View/Effector/PushApartEffectorEditor.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Misaki.ArtTool;
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
[CustomEditor(typeof(PushApartEffector))]
|
||||
public class PushApartEffectorEditor : Editor
|
||||
{
|
||||
[SerializeField]
|
||||
private VisualTreeAsset visualTreeAsset = default;
|
||||
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
var root = new VisualElement();
|
||||
|
||||
var visualAsset = visualTreeAsset.Instantiate();
|
||||
visualAsset.dataSource = serializedObject.targetObject;
|
||||
|
||||
root.Add(visualAsset);
|
||||
root.TrackSerializedObjectValue(serializedObject, OnValueChanged);
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
private void OnValueChanged(SerializedObject serializedObject)
|
||||
{
|
||||
var plainEffector = serializedObject.targetObject as PushApartEffector;
|
||||
plainEffector.propertyChanged.Invoke(plainEffector, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Editor/Cloner/View/Effector/PushApartEffectorEditor.cs.meta
Normal file
13
Editor/Cloner/View/Effector/PushApartEffectorEditor.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e65222f2c1f48f47b95e703d8e55bae
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- visualTreeAsset: {fileID: 9197481963319205126, guid: 03bc880fcc4c82046a75cd81290cd1bd,
|
||||
type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
45
Editor/Cloner/View/Effector/PushApartEffectorView.uxml
Normal file
45
Editor/Cloner/View/Effector/PushApartEffectorView.uxml
Normal file
@@ -0,0 +1,45 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<Style src="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ClonerEditorStyle.uss?fileID=7433441132597879392&guid=216b892cd94cc624da01dc4947facdcb&type=3#ClonerEditorStyle" />
|
||||
<engine:VisualElement data-source-type="Misaki.ArtTool.PushApartEffector, Misaki.ArtTool" style="flex-grow: 1;">
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Effector" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:Slider label="Strength" value="42" high-value="1" fill="true" show-input-field="true">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="strength" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:Slider>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Parameter" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:FloatField label="Radius" value="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="radius" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:FloatField>
|
||||
<engine:UnsignedIntegerField label="Iteration" value="10">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="iteration" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:UnsignedIntegerField>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Fields" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:VisualElement style="flex-grow: 1; flex-direction: row; margin-top: 4px; margin-right: 4px; margin-bottom: 8px; margin-left: 4px;">
|
||||
<engine:Label text="Enable" enable-rich-text="false" style="font-size: 9px; -unity-text-align: middle-left; margin-left: 4px;" />
|
||||
<engine:Label text="Field" enable-rich-text="false" style="flex-grow: 1; margin-left: 12px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
<engine:Label text="Blending" enable-rich-text="false" style="width: 100px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
</engine:VisualElement>
|
||||
<engine:ListView reorderable="true" reorder-mode="Animated" binding-source-selection-mode="AutoAssign" show-add-remove-footer="true" show-border="true" item-template="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ItemTemplate/FieldItemTemplate.uxml?fileID=9197481963319205126&guid=d432ee1ae85c33d4abf54b61fc8a45f5&type=3#FieldItemTemplate" fixed-item-height="45">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="itemsSource" data-source-path="fieldDataList" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:ListView>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
10
Editor/Cloner/View/Effector/PushApartEffectorView.uxml.meta
Normal file
10
Editor/Cloner/View/Effector/PushApartEffectorView.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03bc880fcc4c82046a75cd81290cd1bd
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
34
Editor/Cloner/View/Effector/RandomEffectorEditor.cs
Normal file
34
Editor/Cloner/View/Effector/RandomEffectorEditor.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Misaki.ArtTool;
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
[CustomEditor(typeof(RandomEffector))]
|
||||
public class RandomEffectorEditor : Editor
|
||||
{
|
||||
[SerializeField]
|
||||
private VisualTreeAsset visualTreeAsset = default;
|
||||
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
var root = new VisualElement();
|
||||
|
||||
var visualAsset = visualTreeAsset.Instantiate();
|
||||
visualAsset.dataSource = serializedObject.targetObject;
|
||||
|
||||
root.Add(visualAsset);
|
||||
root.TrackSerializedObjectValue(serializedObject, OnValueChanged);
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
private void OnValueChanged(SerializedObject serializedObject)
|
||||
{
|
||||
var randomEffector = serializedObject.targetObject as RandomEffector;
|
||||
randomEffector.propertyChanged.Invoke(randomEffector, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Editor/Cloner/View/Effector/RandomEffectorEditor.cs.meta
Normal file
13
Editor/Cloner/View/Effector/RandomEffectorEditor.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecf4a3c8fddc5574d90d38d6db2e28de
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- visualTreeAsset: {fileID: 9197481963319205126, guid: 4e9d426ec3a18a84aa2ca50932af5984,
|
||||
type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
117
Editor/Cloner/View/Effector/RandomEffectorView.uxml
Normal file
117
Editor/Cloner/View/Effector/RandomEffectorView.uxml
Normal file
@@ -0,0 +1,117 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<Style src="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ClonerEditorStyle.uss?fileID=7433441132597879392&guid=216b892cd94cc624da01dc4947facdcb&type=3#ClonerEditorStyle" />
|
||||
<engine:VisualElement data-source-type="Misaki.ArtTool.RandomEffector, Misaki.ArtTool" style="flex-grow: 1;">
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Effector" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:Slider label="Strength" value="42" high-value="1" fill="true" show-input-field="true">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="strength" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:Slider>
|
||||
<engine:Vector2Field label="Min Max" value="-1,1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="minMax" binding-mode="TwoWay" source-to-ui-converters="Float2ToVector2Converter" ui-to-source-converters="Float2ToVector2Converter" />
|
||||
</Bindings>
|
||||
</engine:Vector2Field>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Parameter" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer">
|
||||
<engine:DropdownField label="Synchronized" choices="Disable,Enable" index="0">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="synchronized" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:UnsignedIntegerField label="Seed" value="123456" tooltip="Need to regenerate the points to let seed work properly">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="seed" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:UnsignedIntegerField>
|
||||
<engine:EnumField label="Transform Space" value="Center" type="Misaki.ArtTool.TransformSpace, Misaki.ArtTool">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="transformSpace" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:DropdownField label="Position" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnablePosition" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:Vector3Field label="Position Min Max">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="positionMinMax" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnablePosition" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
<engine:DropdownField label="Rotation" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnableRotation" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:Vector3Field label="Rotation Min Max">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="rotationMinMax" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnableRotation" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
<engine:DropdownField label="Scale" choices="Disable,Enable" index="0" class="SmallHeader">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isEnableScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:DropdownField label="Absolute Scale" choices="Disable,Enable" index="0">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isAbsoluteScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:DropdownField label="Uniform Scale" choices="Disable,Enable" index="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="isUniformScale" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:Vector3Field label="Scale Min Max" value="1,1,1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="scaleMinMax" binding-mode="TwoWay" source-to-ui-converters="Float3ToVector3Converter" ui-to-source-converters="Float3ToVector3Converter" />
|
||||
<engine:DataBinding property="style.display" data-source-path="isUniformScale" binding-mode="ToTarget" source-to-ui-converters="InverseBoolToDisplayConverter" />
|
||||
</Bindings>
|
||||
</engine:Vector3Field>
|
||||
<engine:FloatField label="Scale Min Max" value="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="uniformScaleMinMax" binding-mode="TwoWay" />
|
||||
<engine:DataBinding property="style.display" data-source-path="isUniformScale" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:FloatField>
|
||||
<Bindings>
|
||||
<engine:DataBinding property="style.display" data-source-path="isEnableScale" binding-mode="ToTarget" source-to-ui-converters="BoolToDisplayConvertor" />
|
||||
</Bindings>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement>
|
||||
<engine:Label text="Fields" class="SubHeader" />
|
||||
<engine:VisualElement class="PropertyContainer" style="flex-grow: 1;">
|
||||
<engine:VisualElement style="flex-grow: 1; flex-direction: row; margin-top: 4px; margin-right: 4px; margin-bottom: 8px; margin-left: 4px;">
|
||||
<engine:Label text="Enable" enable-rich-text="false" style="font-size: 9px; -unity-text-align: middle-left; margin-left: 4px;" />
|
||||
<engine:Label text="Field" enable-rich-text="false" style="flex-grow: 1; margin-left: 12px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
<engine:Label text="Blending" enable-rich-text="false" style="width: 100px; font-size: 9px; -unity-text-align: middle-left;" />
|
||||
</engine:VisualElement>
|
||||
<engine:ListView reorderable="true" reorder-mode="Animated" binding-source-selection-mode="AutoAssign" show-add-remove-footer="true" show-border="true" item-template="project://database/Packages/com.misaki.art-tools/Editor/Cloner/View/ItemTemplate/FieldItemTemplate.uxml?fileID=9197481963319205126&guid=d432ee1ae85c33d4abf54b61fc8a45f5&type=3#FieldItemTemplate" fixed-item-height="45">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="itemsSource" data-source-path="fieldDataList" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:ListView>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
10
Editor/Cloner/View/Effector/RandomEffectorView.uxml.meta
Normal file
10
Editor/Cloner/View/Effector/RandomEffectorView.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e9d426ec3a18a84aa2ca50932af5984
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
Reference in New Issue
Block a user