Skip to content
Snippets Groups Projects
Commit 5ba876d0 authored by Raymond Chia's avatar Raymond Chia
Browse files

block selection and animation

parent 83bbdf63
Branches
No related merge requests found
Showing
with 2440 additions and 1041 deletions
fileFormatVersion: 2
guid: e5f8e65bee73826449138c186e93c2da
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
public class MyCustomEditor : EditorWindow
{
[SerializeField]
private VisualTreeAsset m_VisualTreeAsset = default;
[MenuItem("Window/UI Toolkit/MyCustomEditor")]
public static void ShowExample()
{
MyCustomEditor wnd = GetWindow<MyCustomEditor>();
wnd.titleContent = new GUIContent("MyCustomEditor");
}
public void CreateGUI()
{
// Each editor window contains a root VisualElement object
VisualElement root = rootVisualElement;
// VisualElements objects can contain other VisualElement following a tree hierarchy.
VisualElement label = new Label("Hello World! From C#");
root.Add(label);
// Instantiate UXML
VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate();
root.Add(labelFromUXML);
}
}
fileFormatVersion: 2
guid: 8578b835692223f4db93e8e0a3cf7e16
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences:
- m_VisualTreeAsset: {fileID: 9197481963319205126, guid: dfba5aadeb36bfb44a4d0ab4fbf6162e, type: 3}
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
<?xml version="1.0" encoding="utf-8"?>
<engine:UXML
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:engine="UnityEngine.UIElements"
xmlns:editor="UnityEditor.UIElements"
xsi:noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd"
>
<engine:Label text="Hello World! From UXML" />
</engine:UXML>
\ No newline at end of file
fileFormatVersion: 2
guid: dfba5aadeb36bfb44a4d0ab4fbf6162e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
......@@ -34,8 +34,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -47.3, y: 0}
m_SizeDelta: {x: 375, y: 40}
m_AnchoredPosition: {x: -112.55, y: -2.5}
m_SizeDelta: {x: 185.0909, y: 35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2234321304338854367
CanvasRenderer:
......@@ -92,142 +92,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &1481946133149878469
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 204483046159874494}
- component: {fileID: 6017018175087569715}
- component: {fileID: 2634445433491381263}
m_Layer: 0
m_Name: BlockNum
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &204483046159874494
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481946133149878469}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4469486358827566908}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 117.35, y: 348.8}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6017018175087569715
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481946133149878469}
m_CullTransparentMesh: 1
--- !u!114 &2634445433491381263
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481946133149878469}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 32
m_fontSizeBase: 32
m_fontSize: 22
m_fontSizeBase: 22
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
......@@ -512,7 +378,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 254.53046, y: 295.2348}
m_AnchoredPosition: {x: 236.6, y: 295.2348}
m_SizeDelta: {x: 60, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5299343671116340445
......@@ -740,7 +606,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 254.53046, y: 181.4}
m_AnchoredPosition: {x: 237.6, y: 199.3}
m_SizeDelta: {x: 60, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1554528784626420269
......@@ -913,8 +779,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -48.8, y: 0}
m_SizeDelta: {x: 375, y: 40}
m_AnchoredPosition: {x: -110.3, y: -3.7491}
m_SizeDelta: {x: 201.6467, y: 37.4982}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8802671165091720735
CanvasRenderer:
......@@ -971,8 +837,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontSize: 22
m_fontSizeBase: 22
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
......@@ -1089,12 +955,11 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5953652883336373052}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: -0, w: 1}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 501, y: 525, z: 0}
m_LocalScale: {x: -3.333333, y: -2, z: 0}
m_LocalScale: {x: 1, y: 1, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 204483046159874494}
- {fileID: 2363120767857969891}
- {fileID: 2066864832431361364}
- {fileID: 6585179749909385394}
......@@ -1581,7 +1446,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 254.53046, y: 236.78479}
m_AnchoredPosition: {x: 237.6, y: 248.7}
m_SizeDelta: {x: 60, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6526850212966304509
......@@ -1754,8 +1619,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -50.2, y: 0}
m_SizeDelta: {x: 375, y: 40}
m_AnchoredPosition: {x: -126.2886, y: -0.000002861}
m_SizeDelta: {x: 190.7095, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4397745658054862337
CanvasRenderer:
......@@ -1812,8 +1677,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 24
m_fontSizeBase: 24
m_fontSize: 22
m_fontSizeBase: 22
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
......
This diff is collapsed.
......@@ -8,8 +8,10 @@ public class AnimateCircle : MonoBehaviour
{
public GameObject block_obj;
int inhale_period = 0;
int exhale_period = 0;
float inhale_period = 0f;
float exhale_period = 0f;
float max_runtime = 0f;
float runtime = 0f;
private bool is_inhale; /* 1 if inhalation, 0 if exhaltion */
private Vector3 scale_diff = new Vector3(0.9f, 0.9f, 0.0f);
......@@ -25,10 +27,8 @@ public class AnimateCircle : MonoBehaviour
original_scale = this.transform.localScale;
scale_diff = final_scale - original_scale;
SetPeriod();
print("scale diff: " + scale_diff);
inhale_velocity = scale_diff / inhale_period;
exhale_velocity = scale_diff / exhale_period;
StateReset();
this.enabled = false;
}
// Update is called once per frame
......@@ -43,6 +43,29 @@ public class AnimateCircle : MonoBehaviour
UpdateExhaleScale();
}
UpdateRespState();
UpdateRuntimeState();
runtime += Time.deltaTime;
}
public void ResetAndRun()
{
this.enabled = true;
StateReset();
}
private void OnDisable()
{
StateReset();
}
void StateReset()
{
SetPeriod();
SetMaxRuntime();
inhale_velocity = scale_diff / inhale_period;
exhale_velocity = scale_diff / exhale_period;
this.transform.localScale = original_scale;
runtime = 0f;
}
void SetPeriod()
......@@ -59,16 +82,36 @@ public class AnimateCircle : MonoBehaviour
if (name == "Inhale")
{
input_field = go.GetComponent<TMP_InputField>();
inhale_period = Int32.Parse(input_field.text);
inhale_period = (float) Convert.ToDouble(input_field.text);
}
else if (name == "Exhale")
{
input_field = go.GetComponent<TMP_InputField>();
exhale_period = Int32.Parse(input_field.text);
exhale_period = (float) Convert.ToDouble(input_field.text);
}
}
Debug.Log("inhale: " + inhale_period);
Debug.Log("exhale: " + exhale_period);
}
void SetMaxRuntime()
{
string name;
GameObject go;
TMP_InputField input_field;
Transform[] transforms = block_obj.GetComponentsInChildren<Transform>();
foreach (var transform in transforms)
{
go = transform.gameObject;
name = go.name;
if (name == "Runtime")
{
input_field = go.GetComponent<TMP_InputField>();
max_runtime = (float) Convert.ToDouble(input_field.text) * 60;
}
}
Debug.Log("runtime: " + max_runtime);
}
void UpdateInhaleScale()
{
......@@ -100,4 +143,13 @@ public class AnimateCircle : MonoBehaviour
is_inhale = !is_inhale;
}
}
void UpdateRuntimeState()
{
if (runtime >= max_runtime)
{
StateReset();
this.enabled = false;
}
}
}
using System.Collections;
using System.Collections.Generic;
using System;
using System.Linq;
using UnityEngine;
using TMPro;
public class BlockHandler : MonoBehaviour
{
public GameObject nblock_input;
public GameObject block_object;
public AnimateCircle animateCircle;
public int max_num_blocks { get; private set; }
TMP_Dropdown dropdown;
List<GameObject> block_objects = new List<GameObject>();
GameObject running_block;
int current_block_index = 0;
private Vector3 block_home_position = new Vector3(-104f, -345f, 0f);
// Start is called before the first frame update
void Start()
{
dropdown = this.GetComponent<TMP_Dropdown>();
GameObject first_block = GetBlockObjectPrefab();
block_objects.Add(first_block);
block_objects[0].SetActive(true);
running_block = block_objects[0];
UpdateOptions();
SetRunningBlockIndex();
UpdateRunningBlock();
}
// Update is called once per frame
void Update()
{
}
public void UpdateOptions()
{
UpdateMaxNumBlocks();
dropdown.ClearOptions();
for (int i = 1; i < max_num_blocks + 1; i++)
{
dropdown.AddOptions(new List<string> { i.ToString() });
}
}
public void UpdateMaxNumBlocks()
{
TMP_InputField input_field;
input_field = nblock_input.GetComponent<TMP_InputField>();
max_num_blocks = Int32.Parse(input_field.text);
}
public void SetRunningBlockIndex()
{
current_block_index = dropdown.value;
Debug.Log("current block index: " + current_block_index);
}
public void UpdateBlockObjects()
{
bool is_empty = !block_objects.Any();
int num_block_objects = 0;
if (!is_empty)
{
num_block_objects = block_objects.Count;
}
if (max_num_blocks > num_block_objects)
{
for (int i = num_block_objects; i < max_num_blocks; i++)
{
block_objects.Add(GetBlockObjectPrefab());
block_objects[i].SetActive(false);
}
}
else if (max_num_blocks < num_block_objects)
{
for (int i = num_block_objects; i > max_num_blocks; i--)
{
block_objects.RemoveAt(i);
}
}
current_block_index = 0;
SetRunningBlock();
UpdateRunningBlock();
}
public void SetRunningBlock()
{
running_block.SetActive(false);
running_block = block_objects[current_block_index];
running_block.SetActive(true);
}
public void UpdateRunningBlock()
{
animateCircle.block_obj = running_block;
}
GameObject GetBlockObjectPrefab()
{
GameObject block = Instantiate(
block_object,
new Vector3(0f, 0f, 0f),
Quaternion.identity
);
block.transform.parent = this.transform;
block.transform.localPosition = block_home_position;
block.transform.localScale = new Vector3(1f, 1f, 0f);
return block;
}
}
fileFormatVersion: 2
guid: 543dae1d77f653d4fa1fef234513a4ca
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 5005bc01086ed90458c889dd47c8fd45
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
m_Name: PanelSettings
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: f9ad620dbe5513642bb740e57db90986, type: 3}
m_TargetTexture: {fileID: 0}
m_ScaleMode: 1
m_ReferenceSpritePixelsPerUnit: 100
m_Scale: 1
m_ReferenceDpi: 96
m_FallbackDpi: 96
m_ReferenceResolution: {x: 1200, y: 800}
m_ScreenMatchMode: 0
m_Match: 0
m_SortingOrder: 0
m_TargetDisplay: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_DynamicAtlasSettings:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
m_MaxSubTextureSize: 64
m_ActiveFilters: 31
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
textSettings: {fileID: 0}
fileFormatVersion: 2
guid: d67721ce65618974e9a2a3d973189c16
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d950268b328116a44bc0386fc534a9f2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@import url("unity-theme://default");
\ No newline at end of file
fileFormatVersion: 2
guid: f9ad620dbe5513642bb740e57db90986
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12388, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:editor="UnityEditor.UIElements" xmlns:engine="UnityEngine.UIElements" xmlns="UnityEditor.Overlays" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="UnityEngine.UIElements.xsd" namespace="UnityEngine.UIElements" />
<xs:import schemaLocation="UnityEditor.UIElements.xsd" namespace="UnityEditor.UIElements" />
<xs:import schemaLocation="UnityEditor.U2D.Animation.xsd" namespace="UnityEditor.U2D.Animation" />
<xs:import schemaLocation="UnityEditor.U2D.Animation.SpriteLibraryEditor.xsd" namespace="UnityEditor.U2D.Animation.SpriteLibraryEditor" />
<xs:import schemaLocation="UnityEditor.U2D.Animation.Upgrading.xsd" namespace="UnityEditor.U2D.Animation.Upgrading" />
<xs:import schemaLocation="UnityEditor.U2D.Layout.xsd" namespace="UnityEditor.U2D.Layout" />
<xs:import schemaLocation="UnityEditor.Tilemaps.xsd" namespace="UnityEditor.Tilemaps" />
<xs:import schemaLocation="UnityEditor.UIElements.Debugger.xsd" namespace="UnityEditor.UIElements.Debugger" />
<xs:import schemaLocation="Unity.UI.Builder.xsd" namespace="Unity.UI.Builder" />
<xs:import schemaLocation="UnityEditor.Search.xsd" namespace="UnityEditor.Search" />
<xs:import schemaLocation="UnityEditor.Experimental.GraphView.xsd" namespace="UnityEditor.Experimental.GraphView" />
<xs:import schemaLocation="UnityEditor.PackageManager.UI.Internal.xsd" namespace="UnityEditor.PackageManager.UI.Internal" />
<xs:import schemaLocation="Unity.Profiling.Editor.xsd" namespace="Unity.Profiling.Editor" />
<xs:import schemaLocation="UnityEditor.ShortcutManagement.xsd" namespace="UnityEditor.ShortcutManagement" />
<xs:import schemaLocation="UnityEditor.Overlays.xsd" namespace="UnityEditor.Overlays" />
</xs:schema>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:editor="UnityEditor.UIElements" xmlns:engine="UnityEngine.UIElements" xmlns="UnityEditor.Overlays" elementFormDefault="qualified" targetNamespace="Unity.Profiling.Editor" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="UnityEngine.UIElements.xsd" namespace="UnityEngine.UIElements" />
<xs:simpleType name="SelectableLabel_keyboard-type_Type">
<xs:restriction base="xs:string">
<xs:enumeration value="Default" />
<xs:enumeration value="ASCIICapable" />
<xs:enumeration value="NumbersAndPunctuation" />
<xs:enumeration value="URL" />
<xs:enumeration value="NumberPad" />
<xs:enumeration value="PhonePad" />
<xs:enumeration value="NamePhonePad" />
<xs:enumeration value="EmailAddress" />
<xs:enumeration value="NintendoNetworkAccount" />
<xs:enumeration value="Social" />
<xs:enumeration value="Search" />
<xs:enumeration value="DecimalPad" />
<xs:enumeration value="OneTimeCode" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="SelectableLabelType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="engine:VisualElement" />
</xs:sequence>
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="true" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:attribute default="" name="binding-path" type="xs:string" use="optional" />
<xs:attribute default="" name="label" type="xs:string" use="optional" />
<xs:attribute default="" name="value" type="xs:string" use="optional" />
<xs:attribute default="-1" name="max-length" type="xs:int" use="optional" />
<xs:attribute default="false" name="password" type="xs:boolean" use="optional" />
<xs:attribute default="*" name="mask-character" type="xs:string" use="optional" />
<xs:attribute default="false" name="readonly" type="xs:boolean" use="optional" />
<xs:attribute default="false" name="is-delayed" type="xs:boolean" use="optional" />
<xs:attribute default="false" name="hide-mobile-input" type="xs:boolean" use="optional" />
<xs:attribute default="Default" name="keyboard-type" xmlns:q1="Unity.Profiling.Editor" type="q1:SelectableLabel_keyboard-type_Type" use="optional" />
<xs:attribute default="false" name="auto-correction" type="xs:boolean" use="optional" />
<xs:attribute default="false" name="multiline" type="xs:boolean" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="SelectableLabel" substitutionGroup="engine:VisualElement" xmlns:q2="Unity.Profiling.Editor" type="q2:SelectableLabelType" />
<xs:complexType name="MemoryUsageBreakdownType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element xmlns:q3="Unity.Profiling.Editor" ref="q3:MemoryUsageBreakdownElement" />
</xs:sequence>
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:attribute default="Memory Usage" name="header-text" type="xs:string" use="optional" />
<xs:attribute default="1288490240" name="total-bytes" type="xs:int" use="optional" />
<xs:attribute default="false" name="show-unknown" type="xs:boolean" use="optional" />
<xs:attribute default="Unknown" name="unknown-name" type="xs:string" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="MemoryUsageBreakdown" substitutionGroup="engine:VisualElement" xmlns:q4="Unity.Profiling.Editor" type="q4:MemoryUsageBreakdownType" />
<xs:complexType name="BackgroundPatternType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:attribute default="1" name="scale" type="xs:float" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="BackgroundPattern" substitutionGroup="engine:VisualElement" xmlns:q5="Unity.Profiling.Editor" type="q5:BackgroundPatternType" />
<xs:complexType name="MemoryUsageBreakdownElementType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:attribute default="Other" name="text" type="xs:string" use="optional" />
<xs:attribute default="" name="background-color-class" type="xs:string" use="optional" />
<xs:attribute default="false" name="show-used" type="xs:boolean" use="optional" />
<xs:attribute default="50" name="used-bytes" type="xs:long" use="optional" />
<xs:attribute default="100" name="total-bytes" type="xs:long" use="optional" />
<xs:attribute default="false" name="show-selected" type="xs:boolean" use="optional" />
<xs:attribute default="0" name="selected-bytes" type="xs:long" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="MemoryUsageBreakdownElement" substitutionGroup="engine:VisualElement" xmlns:q6="Unity.Profiling.Editor" type="q6:MemoryUsageBreakdownElementType" />
</xs:schema>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:editor="UnityEditor.UIElements" xmlns:engine="UnityEngine.UIElements" xmlns="UnityEditor.Overlays" elementFormDefault="qualified" targetNamespace="UnityEditor.Experimental.GraphView" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="UnityEngine.UIElements.xsd" namespace="UnityEngine.UIElements" />
<xs:complexType name="StickyNoteType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="engine:VisualElement" />
</xs:sequence>
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="StickyNote" substitutionGroup="engine:VisualElement" xmlns:q1="UnityEditor.Experimental.GraphView" type="q1:StickyNoteType" />
<xs:complexType name="PillType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:attribute default="false" name="highlighted" type="xs:boolean" use="optional" />
<xs:attribute default="" name="text" type="xs:string" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="Pill" substitutionGroup="engine:VisualElement" xmlns:q2="UnityEditor.Experimental.GraphView" type="q2:PillType" />
<xs:complexType name="ResizableElementType">
<xs:complexContent mixed="false">
<xs:restriction base="engine:VisualElementType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="engine:VisualElement" />
</xs:sequence>
<xs:attribute default="" name="name" type="xs:string" use="optional" />
<xs:attribute default="" name="view-data-key" type="xs:string" use="optional" />
<xs:attribute default="Position" name="picking-mode" type="engine:VisualElement_picking-mode_Type" use="optional" />
<xs:attribute default="" name="tooltip" type="xs:string" use="optional" />
<xs:attribute default="None" name="usage-hints" type="engine:VisualElement_usage-hints_Type" use="optional" />
<xs:attribute default="0" name="tabindex" type="xs:int" use="optional" />
<xs:attribute default="false" name="focusable" type="xs:boolean" use="optional" />
<xs:attribute default="" name="class" type="xs:string" use="optional" />
<xs:attribute default="" name="content-container" type="xs:string" use="optional" />
<xs:attribute default="" name="style" type="xs:string" use="optional" />
<xs:anyAttribute processContents="lax" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="ResizableElement" substitutionGroup="engine:VisualElement" xmlns:q3="UnityEditor.Experimental.GraphView" type="q3:ResizableElementType" />
</xs:schema>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment