Files
com.misaki.hdrp-toon/Editor/Inspector/View/BoxLightAdjustmentView.uxml

51 lines
3.5 KiB
Plaintext

<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">
<engine:VisualElement data-source-type="Unity.Rendering.HighDefinition.Toon.BoxLightAdjustment, Unity.Toonshader" style="flex-grow: 1;">
<engine:Label text="Rendering" style="-unity-font-style: bold; margin-top: 4px; margin-bottom: 2px;" />
<engine:VisualElement name="renderingGroup" style="padding-left: 8px;">
<editor:RenderingLayerMaskField label="Layer Mask" value="DynamicTransform" type="UnityEngine.Rendering.HighDefinition.RenderingLayerMask, Unity.RenderPipelines.HighDefinition.Runtime">
<Bindings>
<engine:DataBinding property="value" data-source-path="LayerMask" data-source-type="Unity.Rendering.HighDefinition.Toon.BoxLightAdjustment, Unity.Toonshader" binding-mode="TwoWay" />
</Bindings>
</editor:RenderingLayerMaskField>
<editor:ObjectField label="Source Light" type="UnityEngine.Light, UnityEngine.CoreModule">
<Bindings>
<engine:DataBinding property="value" data-source-path="BindingSourceLight" binding-mode="TwoWay" />
</Bindings>
</editor:ObjectField>
<editor:ObjectField label="Target Box Light" type="UnityEngine.Light, UnityEngine.CoreModule">
<Bindings>
<engine:DataBinding property="value" data-source-path="TargetBoxLight" binding-mode="TwoWay" />
</Bindings>
</editor:ObjectField>
</engine:VisualElement>
<engine:Label text="Tracking" style="-unity-font-style: bold; margin-top: 4px; margin-bottom: 2px;" />
<engine:VisualElement name="trackingGroup" style="padding-left: 8px;">
<editor:ObjectField label="Tracked Transform" type="UnityEngine.Transform, UnityEngine.CoreModule">
<Bindings>
<engine:DataBinding property="value" data-source-path="trackedTransform" binding-mode="TwoWay" />
</Bindings>
</editor:ObjectField>
<engine:DropdownField label="Follow Position" choices="Disable,Enable" index="0">
<Bindings>
<engine:DataBinding property="index" data-source-path="followGameObjectPosition" binding-mode="TwoWay" />
</Bindings>
</engine:DropdownField>
<engine:DropdownField label="Follow Rotation" choices="Disable,Enable" index="0">
<Bindings>
<engine:DataBinding property="index" data-source-path="followGameObjectRotation" binding-mode="TwoWay" />
</Bindings>
</engine:DropdownField>
<engine:Vector3Field label="Position Offset">
<Bindings>
<engine:DataBinding property="value" data-source-path="positionOffset" binding-mode="TwoWay" />
</Bindings>
</engine:Vector3Field>
<engine:Vector3Field label="Rotation Offset">
<Bindings>
<engine:DataBinding property="value" data-source-path="rotationOffset" binding-mode="TwoWay" source-to-ui-converters="QuaternionToVector3Converter" ui-to-source-converters="QuaternionToVector3Converter" />
</Bindings>
</engine:Vector3Field>
</engine:VisualElement>
</engine:VisualElement>
</engine:UXML>