1
This commit is contained in:
@@ -13,3 +13,15 @@
|
||||
border-top-color: rgb(149, 149, 149);
|
||||
border-bottom-color: rgb(149, 149, 149);
|
||||
}
|
||||
|
||||
.readonly #unity-text-input {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-left-color: rgba(0, 0, 0, 0);
|
||||
border-right-color: rgba(0, 0, 0, 0);
|
||||
border-top-color: rgba(0, 0, 0, 0);
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.readonly .hide-label TextField Label {
|
||||
display: none;
|
||||
}
|
||||
|
11
Src/Unity/UX/EditorExapmles.uxml
Normal file
11
Src/Unity/UX/EditorExapmles.uxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
|
||||
<Style src="project://database/Assets/BITKit/Unity/UX/BITInspector.uss?fileID=7433441132597879392&guid=3a78fb5b182fa434781baf5c9f733586&type=3#BITInspector" />
|
||||
<ui:Button text="Button" parse-escape-sequences="true" display-tooltip-when-elided="true" />
|
||||
<ui:TextField picking-mode="Ignore" label="Text Field" value="filler text" />
|
||||
<ui:VisualElement class="readonly">
|
||||
<ui:VisualElement class="hide-label" style="flex-grow: 1;">
|
||||
<ui:TextField picking-mode="Ignore" label="Text Field" value="filler text" />
|
||||
</ui:VisualElement>
|
||||
<ui:TextField picking-mode="Ignore" label="Text Field" value="filler text" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
10
Src/Unity/UX/EditorExapmles.uxml.meta
Normal file
10
Src/Unity/UX/EditorExapmles.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a61f70effbd22d74999cc16a508f5bc3
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
Reference in New Issue
Block a user