Esteban Maldonado
3 年前
当前提交
f15bb0a0
共有 221 个文件被更改,包括 6096 次插入 和 479 次删除
-
397Assets/Prefabs/UI/CreateContent.prefab
-
146Assets/Prefabs/UI/JoinCreateCanvas.prefab
-
228Assets/Prefabs/UI/MainMenuCanvas.prefab
-
227Assets/Scenes/mainScene.unity
-
2Packages/manifest.json
-
24Packages/packages-lock.json
-
6ProjectSettings/ProjectSettings.asset
-
2ProjectSettings/UnityConnectSettings.asset
-
8Assets/Samples.meta
-
8Assets/UI Toolkit.meta
-
8Assets/Samples/UI Toolkit.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples.meta
-
5Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/.sample.json
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor.meta
-
12Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsClickEvent.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsClickEvent.cs.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsGeometryChanged.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsGeometryChanged.cs.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsKeyboardEvents.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsKeyboardEvents.cs.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsPointerEvents.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsPointerEvents.cs.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsTouchMove.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeEventsTouchMove.cs.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeGeneralRootSelector.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeGeneralRootSelector.cs.meta
-
169Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeRenderToTexture.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeRenderToTexture.cs.meta
-
31Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextAlignmentTags.cs
-
3Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextAlignmentTags.cs.meta
-
31Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextAssets.cs
-
3Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextAssets.cs.meta
-
31Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextBasicStyleTags.cs
-
3Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Bootstraps/RuntimeTextBasicStyleTags.cs.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events.meta
-
67Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/GeometryChangedWindow.cs
-
16Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/GeometryChangedWindow.cs.meta
-
78Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/KeyboardEventsWindow.cs
-
16Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/KeyboardEventsWindow.cs.meta
-
84Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/PointerEventsWindow.cs
-
16Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Events/PointerEventsWindow.cs.meta
-
12Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/General.meta
-
31Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/General/DataPersistenceWindow.cs
-
17Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/General/DataPersistenceWindow.cs.meta
-
128Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/General/DragAndDropWindow.cs
-
16Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/General/DragAndDropWindow.cs.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Rendering.meta
-
181Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Rendering/MeshApiWindow.cs
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Rendering/MeshApiWindow.cs.meta
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Unity.UIElements.Samples.Editor.asmdef
-
7Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Editor/Unity.UIElements.Samples.Editor.asmdef.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Anton SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Anton SDF.asset.meta
-
203Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Anton.ttf
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Anton.ttf.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Bangers SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Bangers SDF.asset.meta
-
192Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Bangers.ttf
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Bangers.ttf.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Electronic Highway Sign SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Electronic Highway Sign SDF.asset.meta
-
79Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Electronic Highway Sign.TTF
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Electronic Highway Sign.TTF.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/LiberationSans SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/LiberationSans SDF.asset.meta
-
1001Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/LiberationSans.ttf
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/LiberationSans.ttf.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Oswald-Bold SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Oswald-Bold SDF.asset.meta
-
281Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Oswald-Bold.ttf
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Oswald-Bold.ttf.meta
-
201Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Roboto-Bold SDF.asset
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Roboto-Bold SDF.asset.meta
-
1001Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Roboto-Bold.ttf
-
21Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Fonts & Materials/Roboto-Bold.ttf.meta
-
8Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts.meta
-
25Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_ClickEvent.uxml
-
10Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_ClickEvent.uxml.meta
-
12Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_GeometryChanged.uxml
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_GeometryChanged.uxml.meta
-
18Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_KeyboardEvents.uxml
-
11Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_KeyboardEvents.uxml.meta
-
15Assets/Samples/UI Toolkit/1.0.0-preview.17/UI Toolkit Examples/Resources/Layouts/Events_PointerEvents.uxml
|
|||
fileFormatVersion: 2 |
|||
guid: 9440dd0b5c0ea024791ae7e34614f6a4 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 9a883fd9d62614446b76c2402e3d2dca |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 575c5ad5a4d1f7c43bbe705f010e8dfd |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 6a05adaec33e5ff458afa35ae022aedf |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4306c3d0cf84ee34f9fc6d31c17a6268 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
{ |
|||
"displayName": "UI Toolkit Examples", |
|||
"description": "Examples that demonstrate workflows and API usage for both Editor and Runtime UI", |
|||
"createSeparatePackage": false |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6e056190585c1264f85dc6ed389a68af |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
<<<<<<< Updated upstream:com.unity.ui/Samples/Editor/Bootstraps.meta |
|||
guid: d5cb4077a22645d40b80530a84c5b878 |
|||
======= |
|||
guid: f27c72bb447ad714e8f7eb157df71751 |
|||
>>>>>>> Stashed changes:com.unity.ui/Samples/DrumMachine.meta |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Events; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/ClickEvent (Runtime)")] |
|||
public static void StartRuntimeEventClickEvent() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Whack-A-Button"); |
|||
var component = go.AddComponent<ClickEventSample>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3a52e02a8516cfc4f990351878c3a410 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Events; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/GeometryChanged (Runtime)")] |
|||
public static void StartRuntimeEventsGeometryChanged() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<GeometryChanged>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: aa87974733e45d942b0f7bc1e3df81db |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Events; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Keyboard Events (Runtime)")] |
|||
public static void StartRuntimeEventsKeyboardEvents() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<KeyboardEvents>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 77b4987e2c96b9244bbe54f6cfffe5c0 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Events; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Pointer Events (Runtime)")] |
|||
public static void StartRuntimeEventsPointerEvents() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<PointerEvents>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 81716c9147c486e4ca9bac9c8c432e42 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Events; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Touch Move (Runtime)")] |
|||
public static void StartRuntimeEventsTouchMove() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<TouchMove>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 55a855b1667f2054e83c8d426992419f |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.General; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/General/Root Selector (Runtime)")] |
|||
public static void StartRuntimeGeneralRootSelector() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<RootSelector>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7b010fb75fdc4ae4f81623f74f14faa1 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using Samples.Runtime.Events; |
|||
using Samples.Runtime.Rendering; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
using UnityEngine.Experimental.Rendering; |
|||
using UnityEngine.Rendering; |
|||
using UnityEngine.UIElements; |
|||
using Object = UnityEngine.Object; |
|||
using Random = UnityEngine.Random; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Rendering/RenderTexture 3D (Runtime)")] |
|||
public static void StartRuntimeRenderTexture3D() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
|
|||
var go = new GameObject("UITextureProjection"); |
|||
var projection = go.AddComponent<UITextureProjection>(); |
|||
|
|||
var material = CreateDefaultMaterial(projection.TargetPanel.targetTexture); |
|||
|
|||
go = new GameObject("Whack-A-Button"); |
|||
var component = go.AddComponent<ClickEventSample>(); |
|||
component.SetPanelSettings(projection.TargetPanel); |
|||
|
|||
var cube = CreatePrimitive(PrimitiveType.Cube, material, 0.8f); |
|||
//Let's show the other side of the cube
|
|||
cube.transform.localEulerAngles = new Vector3(0, 180, 0); |
|||
|
|||
CreatePrimitive(PrimitiveType.Cylinder, material, -0.8f); |
|||
|
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
|
|||
[MenuItem("Window/UI Toolkit/Examples/Rendering/RenderTexture Background (Runtime)")] |
|||
public static void StartRuntimeRenderTextureBackground() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
|
|||
var go = new GameObject("UI"); |
|||
var doc = go.AddComponent<UIDocument>(); |
|||
var component = go.AddComponent<RenderTextureBackgroundDemo>(); |
|||
doc.panelSettings = component.panelSettings; |
|||
doc.visualTreeAsset = component.visualTreeAsset; |
|||
|
|||
go = new GameObject("Shapes"); |
|||
|
|||
RenderTexture capsuleRt = component.capsuleRt; |
|||
|
|||
component.cubeRt = AddCameraSetup(go, PrimitiveType.Cube, null, "Cube", 0); |
|||
component.cylinderRt = AddCameraSetup(go, PrimitiveType.Cylinder, null, "Cylinder", 10); |
|||
component.capsuleRt = AddCameraSetup(go, PrimitiveType.Capsule, capsuleRt, "Capsule", 20); |
|||
|
|||
// let's send it far away for now
|
|||
go.transform.localPosition = new Vector3(100, 100, 100); |
|||
|
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
|
|||
static Material CreateDefaultMaterial(RenderTexture texture) |
|||
{ |
|||
Material material = null; |
|||
var pipeline = GraphicsSettings.currentRenderPipeline; |
|||
if (pipeline != null) |
|||
{ |
|||
material = Object.Instantiate(pipeline.defaultMaterial); |
|||
|
|||
if (pipeline.GetType().Name == "HDRenderPipelineAsset") |
|||
{ |
|||
material.SetTexture("_BaseColorMap", texture); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
material = new Material(Shader.Find("Standard")); |
|||
} |
|||
material.mainTexture = texture; |
|||
|
|||
return material; |
|||
} |
|||
|
|||
static GameObject CreatePrimitive(PrimitiveType type, Material mt, float offset) |
|||
{ |
|||
var primitive = GameObject.CreatePrimitive(type); |
|||
primitive.transform.localPosition = new Vector3(offset, 0.8f, -7); |
|||
|
|||
var rotator = primitive.AddComponent<Rotator>(); |
|||
rotator.rotationSpeed = new Vector3(Random.Range(3.0f, 10.0f), Random.Range(3.0f, 10.0f), Random.Range(3.0f, 10.0f)); |
|||
|
|||
var meshRenderer = primitive.GetComponent<MeshRenderer>(); |
|||
if (mt != null) |
|||
meshRenderer.sharedMaterial = mt; |
|||
|
|||
Component collider = null; |
|||
|
|||
switch (type) |
|||
{ |
|||
case PrimitiveType.Sphere: |
|||
collider = primitive.GetComponent<SphereCollider>(); |
|||
break; |
|||
case PrimitiveType.Capsule: |
|||
case PrimitiveType.Cylinder: |
|||
collider = primitive.GetComponent<CapsuleCollider>(); |
|||
break; |
|||
case PrimitiveType.Cube: |
|||
collider = primitive.GetComponent<BoxCollider>(); |
|||
break; |
|||
default: |
|||
//probably already using a MeshCollider
|
|||
break; |
|||
} |
|||
|
|||
if (collider != null) |
|||
{ |
|||
Object.DestroyImmediate(collider); |
|||
var meshCollider = primitive.AddComponent<MeshCollider>(); |
|||
meshCollider.sharedMesh = primitive.GetComponent<MeshFilter>().sharedMesh; |
|||
} |
|||
|
|||
return primitive; |
|||
} |
|||
|
|||
static RenderTexture AddCameraSetup(GameObject go, PrimitiveType type, RenderTexture rt, string label, float offset) |
|||
{ |
|||
GameObject root = new GameObject(label); |
|||
|
|||
root.transform.parent = go.transform; |
|||
|
|||
var shape = CreatePrimitive(type, null, 0.0f); |
|||
|
|||
shape.transform.parent = root.transform; |
|||
shape.transform.localPosition = new Vector3(0, 0, 3); |
|||
|
|||
var camGo = new GameObject("camera"); |
|||
var cam = camGo.AddComponent<Camera>(); |
|||
cam.clearFlags = CameraClearFlags.SolidColor; |
|||
camGo.transform.parent = root.transform; |
|||
cam.transform.localPosition = new Vector3(0, 0, 0); |
|||
|
|||
if (rt == null) |
|||
{ |
|||
rt = new RenderTexture(512, 512, 8, RenderTextureFormat.ARGB32); |
|||
} |
|||
|
|||
cam.targetTexture = rt; |
|||
root.transform.localPosition = new Vector3(offset, 0, 0); |
|||
|
|||
|
|||
return rt; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8429dd44ec124d94598291b5330308cb |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Samples.Runtime.Text; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Text/Alignment Tags (Runtime)")] |
|||
public static void StartRuntimeTextAlignmentTags() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
InitializeTextAlignmentTagsScene(); |
|||
} |
|||
|
|||
static void InitializeTextAlignmentTagsScene() |
|||
{ |
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<AlignmentTags>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 9a238c1ab5a64ab187bef0f821a0c6bf |
|||
timeCreated: 1596567869 |
|
|||
using Samples.Runtime.Text; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Text/Assets (Runtime)")] |
|||
public static void StartRuntimeTextAssets() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
InitializeTextAssetsScene(); |
|||
} |
|||
|
|||
static void InitializeTextAssetsScene() |
|||
{ |
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<TextAssets>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 042f987a09c14960a3a25ed0ce4e6997 |
|||
timeCreated: 1596567848 |
|
|||
using Samples.Runtime.Text; |
|||
using UnityEditor; |
|||
using UnityEditor.SceneManagement; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Utils |
|||
{ |
|||
public static partial class MenuItems |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Text/Basic Style Tags (Runtime)")] |
|||
public static void StartRuntimeTextBasicStyleTags() |
|||
{ |
|||
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
InitializeTextBasicStyleTagsScene(); |
|||
} |
|||
|
|||
static void InitializeTextBasicStyleTagsScene() |
|||
{ |
|||
EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects); |
|||
var go = new GameObject("Sample Object"); |
|||
var component = go.AddComponent<BasicStyleTags>(); |
|||
EditorApplication.EnterPlaymode(); |
|||
EditorGUIUtility.PingObject(MonoScript.FromMonoBehaviour(component)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: cea17190ef8a45f693819d6e06aea93e |
|||
timeCreated: 1596566169 |
|
|||
fileFormatVersion: 2 |
|||
guid: 0b07b0bd7093f1c478224c1e3fc32c93 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Editor.Events |
|||
{ |
|||
public class GeometryChangedWindow : EditorWindow |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Geometry Changed (Editor)")] |
|||
public static void OpenWindow() |
|||
{ |
|||
var window = GetWindow<GeometryChangedWindow>("Geometry Changed Sample"); |
|||
window.minSize = new Vector2(200, 170); |
|||
EditorGUIUtility.PingObject(MonoScript.FromScriptableObject(window)); |
|||
} |
|||
|
|||
[SerializeField] private VisualTreeAsset uxmlAsset = default; |
|||
|
|||
private Label label; |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
uxmlAsset.CloneTree(rootVisualElement); |
|||
|
|||
var menu = rootVisualElement.Q<VisualElement>(className: "menu"); |
|||
label = rootVisualElement.Q<Label>(className: "container__label"); |
|||
menu.RegisterCallback<GeometryChangedEvent>(OnGeometryChanged); |
|||
} |
|||
|
|||
private void OnGeometryChanged(GeometryChangedEvent evt) |
|||
{ |
|||
string oldWidthType = GetWidthType(evt.oldRect.width); |
|||
string newWidthType = GetWidthType(evt.newRect.width); |
|||
|
|||
if (oldWidthType != newWidthType) |
|||
{ |
|||
var menu = (VisualElement)evt.target; |
|||
menu.RemoveFromClassList($"menu--{oldWidthType}"); |
|||
menu.AddToClassList($"menu--{newWidthType}"); |
|||
label.text = $"The format is {newWidthType.ToUpper()}."; |
|||
} |
|||
} |
|||
|
|||
private string GetWidthType(float width) |
|||
{ |
|||
string widthType; |
|||
if ((int)width <= 0) |
|||
{ |
|||
widthType = "none"; |
|||
} |
|||
else if ((int)width <= 300) |
|||
{ |
|||
widthType = "narrow"; |
|||
} |
|||
else if ((int)width <= 600) |
|||
{ |
|||
widthType = "medium"; |
|||
} |
|||
else |
|||
{ |
|||
widthType = "wide"; |
|||
} |
|||
|
|||
return widthType; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: fa259658dfc6c064cb1d0198ac8a726a |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: |
|||
- m_ViewDataDictionary: {instanceID: 0} |
|||
- uxmlAsset: {fileID: 9197481963319205126, guid: 35646b239b1a8b44d9f538886bcca68a, |
|||
type: 3} |
|||
- styleAsset: {fileID: 7433441132597879392, guid: 9ca8d975f19e24948b51fefe0db3eda1, |
|||
type: 3} |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Editor.Events |
|||
{ |
|||
public class KeyboardEventsWindow : EditorWindow |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Keyboard Events (Editor)")] |
|||
private static void OpenWindow() |
|||
{ |
|||
var window = GetWindow<KeyboardEventsWindow>("Keyboard Events"); |
|||
window.minSize = new Vector2(700, 230); |
|||
EditorGUIUtility.PingObject(MonoScript.FromScriptableObject(window)); |
|||
} |
|||
|
|||
[SerializeField] private VisualTreeAsset uxmlAsset = default; |
|||
|
|||
private Label label; |
|||
|
|||
private bool keyIsDown = false; |
|||
private readonly int[] timesInMillis = new int[4]; |
|||
private int currentIndex; |
|||
private int nextIndex; |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
uxmlAsset.CloneTree(rootVisualElement); |
|||
|
|||
label = rootVisualElement.Q<Label>(className: "display__bpm"); |
|||
|
|||
var tapElement = rootVisualElement.Q<VisualElement>(className: "content-section__tap-box"); |
|||
tapElement.focusable = true; |
|||
tapElement.pickingMode = PickingMode.Position; |
|||
tapElement.RegisterCallback<AttachToPanelEvent>(_ => tapElement.Focus()); |
|||
tapElement.RegisterCallback<BlurEvent>(_ => tapElement.Focus()); |
|||
tapElement.RegisterCallback<KeyDownEvent>(OnKeyDown); |
|||
tapElement.RegisterCallback<KeyUpEvent>(OnKeyUp); |
|||
} |
|||
|
|||
private void OnKeyDown(KeyDownEvent evt) |
|||
{ |
|||
if (evt.keyCode != KeyCode.Space || keyIsDown) return; |
|||
keyIsDown = true; |
|||
evt.StopPropagation(); |
|||
|
|||
((VisualElement)evt.target).AddToClassList("content-section__tap-box--active"); |
|||
|
|||
currentIndex = nextIndex; |
|||
nextIndex = (nextIndex + 1) % timesInMillis.Length; |
|||
|
|||
timesInMillis[currentIndex] = (int)(evt.timestamp & 0x0000FFFF); |
|||
|
|||
label.text = GetBpm().ToString(); |
|||
} |
|||
|
|||
private void OnKeyUp(KeyUpEvent evt) |
|||
{ |
|||
if (evt.keyCode != KeyCode.Space || !keyIsDown) return; |
|||
keyIsDown = false; |
|||
evt.StopPropagation(); |
|||
|
|||
((VisualElement)evt.target).RemoveFromClassList("content-section__tap-box--active"); |
|||
} |
|||
|
|||
private int GetBpm() |
|||
{ |
|||
var min = timesInMillis[nextIndex]; |
|||
var max = timesInMillis[currentIndex]; |
|||
if (min == 0) return 0; |
|||
|
|||
var avgDelayInSecs = ((float)max - min) / 3 / 1000; |
|||
|
|||
var result = Mathf.RoundToInt(60 / avgDelayInSecs); |
|||
return Mathf.Max(0, result); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: be6658a12329411449ccf639da7c3c44 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: |
|||
- m_ViewDataDictionary: {instanceID: 0} |
|||
- uxmlAsset: {fileID: 9197481963319205126, guid: 3ab29a8c2669473479ea1505ef96a5b6, |
|||
type: 3} |
|||
- styleAsset: {fileID: 7433441132597879392, guid: ff8bea39efab9244e9bcdef7f075942c, |
|||
type: 3} |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Editor.Events |
|||
{ |
|||
public class PointerEventsWindow : EditorWindow |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Events/Pointer Events (Editor)")] |
|||
public static void OpenWindow() |
|||
{ |
|||
var window = GetWindow<PointerEventsWindow>("Pointer Events"); |
|||
window.minSize = window.maxSize = new Vector2(460, 580); |
|||
EditorGUIUtility.PingObject(MonoScript.FromScriptableObject(window)); |
|||
} |
|||
|
|||
[SerializeField] private VisualTreeAsset uxmlAsset = default; |
|||
|
|||
private VisualElement mainArea = default; |
|||
|
|||
private Label tooltip; |
|||
private readonly Vector2 tooltipOffset = new Vector2(10, 10); |
|||
|
|||
private Label coordinatesLabel; |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
uxmlAsset.CloneTree(rootVisualElement); |
|||
|
|||
mainArea = rootVisualElement.Q<VisualElement>(className: "main-area"); |
|||
tooltip = rootVisualElement.Q<Label>(className: "main-area__tooltip"); |
|||
coordinatesLabel = rootVisualElement.Q<Label>(className: "info-block__label--data"); |
|||
RegisterCallbacks(); |
|||
} |
|||
|
|||
private void RegisterCallbacks() |
|||
{ |
|||
mainArea.RegisterCallback<PointerDownEvent>(OnPointerDown); |
|||
mainArea.RegisterCallback<PointerUpEvent>(OnPointerUp); |
|||
mainArea.RegisterCallback<PointerMoveEvent>(OnPointerMove); |
|||
} |
|||
|
|||
private void OnPointerDown(PointerDownEvent evt) |
|||
{ |
|||
tooltip.text = "PointerDown!"; |
|||
UpdateTooltipPosition(evt.localPosition); |
|||
mainArea.AddToClassList("main-area--active"); |
|||
mainArea.CapturePointer(evt.pointerId); |
|||
} |
|||
|
|||
private void OnPointerUp(PointerUpEvent evt) |
|||
{ |
|||
mainArea.CapturePointer(evt.pointerId); |
|||
mainArea.ReleaseMouse(); |
|||
tooltip.text = "PointerUp!"; |
|||
UpdateTooltipPosition(evt.localPosition); |
|||
mainArea.RemoveFromClassList("main-area--active"); |
|||
mainArea.schedule.Execute(() => |
|||
{ |
|||
if (string.CompareOrdinal(tooltip.text, "PointerUp!") == 0) |
|||
{ |
|||
tooltip.text = string.Empty; |
|||
} |
|||
}).StartingIn(1000); |
|||
} |
|||
|
|||
private void OnPointerMove(PointerMoveEvent evt) |
|||
{ |
|||
coordinatesLabel.text = $"({(int)evt.localPosition.x}, {(int)evt.localPosition.y})"; |
|||
if (mainArea.panel.GetCapturingElement(evt.pointerId) == evt.target) |
|||
{ |
|||
UpdateTooltipPosition(evt.localPosition); |
|||
} |
|||
} |
|||
|
|||
private void UpdateTooltipPosition(Vector2 localPosition) |
|||
{ |
|||
tooltip.style.left = Mathf.Clamp(localPosition.x + tooltipOffset.x, |
|||
0, mainArea.contentRect.width - tooltip.contentRect.width); |
|||
tooltip.style.top = Mathf.Clamp(localPosition.y + tooltipOffset.y, |
|||
0, mainArea.contentRect.height - tooltip.contentRect.height); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 2cb9212525c7da5419801c5a421483d1 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: |
|||
- m_ViewDataDictionary: {instanceID: 0} |
|||
- uxmlAsset: {fileID: 9197481963319205126, guid: a4530087b1ab8a44ea3e1466432e6bbc, |
|||
type: 3} |
|||
- ussAsset: {fileID: 7433441132597879392, guid: b7bcca83ed7bd6b4fb425e159f72f289, |
|||
type: 3} |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
<<<<<<< Updated upstream:com.unity.ui/Samples/Editor/General.meta |
|||
guid: b33d560da40a88a4a81bc5bf0aa94760 |
|||
======= |
|||
guid: f27c72bb447ad714e8f7eb157df71751 |
|||
>>>>>>> Stashed changes:com.unity.ui/Samples/DrumMachine.meta |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.UIElements; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
|
|||
namespace Samples.Editor.General |
|||
{ |
|||
public class DataPersistenceWindow : EditorWindow |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/General/Data Persistence (Editor)")] |
|||
public static void OpenWindow() |
|||
{ |
|||
var window = GetWindow<DataPersistenceWindow>("Data Persistence"); |
|||
window.minSize = window.maxSize = new Vector2(1026, 372); |
|||
EditorGUIUtility.PingObject(MonoScript.FromScriptableObject(window)); |
|||
} |
|||
|
|||
[SerializeField] private VisualTreeAsset uxmlAsset = default; |
|||
[SerializeField] private Texture backgroundImage = default; |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
uxmlAsset.CloneTree(rootVisualElement); |
|||
|
|||
var backgrounds = rootVisualElement.Query<ScrollView>(className: "scrollview"); |
|||
backgrounds.ForEach(scrollview => scrollview.Add(new Image {image = backgroundImage})); |
|||
|
|||
var csScrollview = rootVisualElement.Q<ScrollView>("cs-persistence-scrollview"); |
|||
csScrollview.viewDataKey = "csPersistence"; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 951bd929dd3c2a54196a1fd4ec24fbc8 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: |
|||
- m_ViewDataDictionary: {instanceID: 0} |
|||
- uxmlAsset: {fileID: 9197481963319205126, guid: 2c8079dccae91dd4b8e38a558ce26e50, |
|||
type: 3} |
|||
- styleAsset: {fileID: 7433441132597879392, guid: ac4e81936a9dd464cbe46a35db11b47e, |
|||
type: 3} |
|||
- backgroundImage: {fileID: 2800000, guid: 6743d76023339854884ddbe02a51d054, type: 3} |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Editor.General |
|||
{ |
|||
public class DragAndDropWindow : EditorWindow |
|||
{ |
|||
[SerializeField] private VisualTreeAsset uxmlAsset = default; |
|||
|
|||
private VisualElement dropArea; |
|||
private Label dropLabel; |
|||
private Object droppedObject = null; |
|||
private string assetPath = string.Empty; |
|||
|
|||
[MenuItem("Window/UI Toolkit/Examples/General/Drag And Drop (Editor)")] |
|||
public static void OpenDragAndDropWindows() |
|||
{ |
|||
var windowA = CreateInstance<DragAndDropWindow>(); |
|||
var windowB = CreateInstance<DragAndDropWindow>(); |
|||
|
|||
windowA.minSize = windowB.minSize = new Vector2(300f, 180f); |
|||
windowA.Show(); |
|||
windowB.Show(); |
|||
windowA.titleContent = new GUIContent("Drag and Drop A"); |
|||
windowB.titleContent = new GUIContent("Drag and Drop B"); |
|||
windowA.position = new Rect(new Vector2(50f, 50), windowA.minSize); |
|||
windowB.position = new Rect(new Vector2(450f, 100), windowA.minSize); |
|||
} |
|||
|
|||
private void OnEnable() |
|||
{ |
|||
if (uxmlAsset != null) uxmlAsset.CloneTree(rootVisualElement); |
|||
RegisterCallbacks(); |
|||
} |
|||
|
|||
private void OnDisable() |
|||
{ |
|||
UnregisterCallbacks(); |
|||
} |
|||
|
|||
private void RegisterCallbacks() |
|||
{ |
|||
dropArea = rootVisualElement.Q<VisualElement>(className: "drop-area"); |
|||
dropLabel = rootVisualElement.Q<Label>(className: "drop-area__label"); |
|||
dropArea.RegisterCallback<PointerDownEvent>(OnPointerDown); |
|||
dropArea.RegisterCallback<DragEnterEvent>(OnDragEnter); |
|||
dropArea.RegisterCallback<DragLeaveEvent>(OnDragLeave); |
|||
dropArea.RegisterCallback<DragUpdatedEvent>(OnDragUpdate); |
|||
dropArea.RegisterCallback<DragPerformEvent>(OnDragPerform); |
|||
} |
|||
|
|||
private void UnregisterCallbacks() |
|||
{ |
|||
dropArea.UnregisterCallback<PointerDownEvent>(OnPointerDown); |
|||
dropArea.UnregisterCallback<DragEnterEvent>(OnDragEnter); |
|||
dropArea.UnregisterCallback<DragLeaveEvent>(OnDragLeave); |
|||
dropArea.UnregisterCallback<DragUpdatedEvent>(OnDragUpdate); |
|||
dropArea.UnregisterCallback<DragPerformEvent>(OnDragPerform); |
|||
} |
|||
|
|||
private void OnPointerDown(PointerDownEvent evt) |
|||
{ |
|||
if (droppedObject != null) |
|||
{ |
|||
DragAndDrop.PrepareStartDrag(); |
|||
DragAndDrop.objectReferences = new[] { droppedObject }; |
|||
if (assetPath != string.Empty) |
|||
{ |
|||
DragAndDrop.paths = new[] { assetPath }; |
|||
} |
|||
else |
|||
{ |
|||
DragAndDrop.paths = new string[] {}; |
|||
} |
|||
DragAndDrop.StartDrag(string.Empty); |
|||
} |
|||
} |
|||
|
|||
private void OnDragEnter(DragEnterEvent evt) |
|||
{ |
|||
string draggedName = ""; |
|||
if (DragAndDrop.paths.Length > 0) |
|||
{ |
|||
assetPath = DragAndDrop.paths[0]; |
|||
var splitPath = assetPath.Split('/'); |
|||
draggedName = splitPath[splitPath.Length - 1]; |
|||
} |
|||
else if (DragAndDrop.objectReferences.Length > 0) |
|||
{ |
|||
draggedName = DragAndDrop.objectReferences[0].name; |
|||
} |
|||
dropLabel.text = $"Dropping '{draggedName}'..."; |
|||
dropArea.AddToClassList("drop-area--dropping"); |
|||
} |
|||
|
|||
private void OnDragLeave(DragLeaveEvent evt) |
|||
{ |
|||
assetPath = string.Empty; |
|||
droppedObject = null; |
|||
dropLabel.text = "Drag an asset here..."; |
|||
dropArea.RemoveFromClassList("drop-area--dropping"); |
|||
} |
|||
|
|||
private void OnDragUpdate(DragUpdatedEvent evt) |
|||
{ |
|||
DragAndDrop.visualMode = DragAndDropVisualMode.Generic; |
|||
} |
|||
|
|||
private void OnDragPerform(DragPerformEvent evt) |
|||
{ |
|||
droppedObject = DragAndDrop.objectReferences[0]; |
|||
var draggedName = ""; |
|||
if (assetPath != string.Empty) |
|||
{ |
|||
var splitPath = assetPath.Split('/'); |
|||
draggedName = splitPath[splitPath.Length - 1]; |
|||
} |
|||
else |
|||
{ |
|||
draggedName = droppedObject.name; |
|||
} |
|||
dropLabel.text = $"Containing '{draggedName}'...\n\n" + |
|||
$"(You can also drag from here)"; |
|||
dropArea.RemoveFromClassList("drop-area--dropping"); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: f4c7f833086da9945bf9386ab9a7ba37 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: |
|||
- m_ViewDataDictionary: {instanceID: 0} |
|||
- uxmlAsset: {fileID: 9197481963319205126, guid: f4356558a7c715349b1e5017d34a5d40, |
|||
type: 3} |
|||
- styleSheet: {fileID: 7433441132597879392, guid: 1b6848ef1ad254f4e9489311138d2a68, |
|||
type: 3} |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: eb026355acf343a44b80756ec08fd89b |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.UIElements; |
|||
|
|||
namespace Samples.Editor.Rendering |
|||
{ |
|||
public class MeshApiWindow : EditorWindow |
|||
{ |
|||
[MenuItem("Window/UI Toolkit/Examples/Rendering/Mesh API (Editor)")] |
|||
public static void OpenWindow() |
|||
{ |
|||
var window = GetWindow<MeshApiWindow>("Mesh API Sample"); |
|||
window.minSize = new Vector2(350, 150); |
|||
EditorGUIUtility.PingObject(MonoScript.FromScriptableObject(window)); |
|||
} |
|||
|
|||
List<IDisposable> m_ToDispose = new List<IDisposable>(); |
|||
|
|||
void OnEnable() |
|||
{ |
|||
IStyle rootStyle = rootVisualElement.style; |
|||
rootStyle.flexDirection = FlexDirection.Row; |
|||
rootStyle.flexWrap = Wrap.Wrap; |
|||
|
|||
rootVisualElement.Add(new SolidQuad { name = "RedGradient", style = { width = 100, height = 100, color = Color.red } }); |
|||
rootVisualElement.Add(new SolidQuad { name = "GreenGradient", style = { width = 100, height = 100, color = Color.green } }); |
|||
rootVisualElement.Add(new SolidQuad { name = "BlueGradient", style = { width = 100, height = 100, color = Color.blue } }); |
|||
rootVisualElement.Add(new SolidHexagon { name = "Hexagon", style = { width = 100, height = 100 } }); |
|||
rootVisualElement.Add(new TexturedCheckerboard { name = "Checkerboard", style = { width = 100, height = 100 } }); |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
rootVisualElement.Clear(); |
|||
} |
|||
|
|||
class SolidQuad : VisualElement |
|||
{ |
|||
public SolidQuad() { generateVisualContent += OnGenerateVisualContent; } |
|||
|
|||
static readonly Vertex[] k_Vertices = new Vertex[4]; |
|||
static readonly ushort[] k_Indices = { 0, 1, 2, 2, 3, 0 }; |
|||
|
|||
void OnGenerateVisualContent(MeshGenerationContext mgc) |
|||
{ |
|||
Rect r = contentRect; |
|||
if (r.width < 0.01f || r.height < 0.01f) |
|||
return; // Skip rendering when too small.
|
|||
|
|||
Color color = resolvedStyle.color; |
|||
k_Vertices[0].tint = Color.black; |
|||
k_Vertices[1].tint = Color.black; |
|||
k_Vertices[2].tint = color; |
|||
k_Vertices[3].tint = color; |
|||
|
|||
float left = 0; |
|||
float right = r.width; |
|||
float top = 0; |
|||
float bottom = r.height; |
|||
|
|||
k_Vertices[0].position = new Vector3(left, bottom, Vertex.nearZ); |
|||
k_Vertices[1].position = new Vector3(left, top, Vertex.nearZ); |
|||
k_Vertices[2].position = new Vector3(right, top, Vertex.nearZ); |
|||
k_Vertices[3].position = new Vector3(right, bottom, Vertex.nearZ); |
|||
|
|||
MeshWriteData mwd = mgc.Allocate(k_Vertices.Length, k_Indices.Length); |
|||
mwd.SetAllVertices(k_Vertices); |
|||
mwd.SetAllIndices(k_Indices); |
|||
} |
|||
} |
|||
|
|||
class SolidHexagon : VisualElement |
|||
{ |
|||
static readonly Vertex[] k_Vertices = new Vertex[7]; |
|||
static readonly ushort[] k_Indices = |
|||
{ |
|||
0, 2, 1, |
|||
0, 3, 2, |
|||
0, 4, 3, |
|||
0, 5, 4, |
|||
0, 6, 5, |
|||
0, 1, 6 |
|||
}; |
|||
|
|||
static SolidHexagon() |
|||
{ |
|||
k_Vertices[0].tint = Color.white; |
|||
k_Vertices[1].tint = Color.red; |
|||
k_Vertices[2].tint = Color.yellow; |
|||
k_Vertices[3].tint = Color.green; |
|||
k_Vertices[4].tint = Color.cyan; |
|||
k_Vertices[5].tint = Color.blue; |
|||
k_Vertices[6].tint = Color.magenta; |
|||
} |
|||
|
|||
public SolidHexagon() |
|||
{ |
|||
generateVisualContent += OnGenerateVisualContent; |
|||
} |
|||
|
|||
void OnGenerateVisualContent(MeshGenerationContext mgc) |
|||
{ |
|||
Rect r = contentRect; |
|||
if (r.width < 0.01f || r.height < 0.01f) |
|||
return; // Skip rendering when too small.
|
|||
|
|||
float radiusX = r.width / 2; |
|||
float radiusY = r.height / 2; |
|||
|
|||
k_Vertices[0].position = new Vector3(radiusX, radiusY, Vertex.nearZ); |
|||
|
|||
float angle = 0; |
|||
for (int i = 1; i < 7; ++i) |
|||
{ |
|||
k_Vertices[i].position = new Vector3( |
|||
radiusX + radiusX * Mathf.Cos(angle), |
|||
radiusY - radiusY * Mathf.Sin(angle), |
|||
Vertex.nearZ); |
|||
angle += 2f * Mathf.PI / 6; |
|||
} |
|||
|
|||
MeshWriteData mwd = mgc.Allocate(k_Vertices.Length, k_Indices.Length); |
|||
mwd.SetAllVertices(k_Vertices); |
|||
mwd.SetAllIndices(k_Indices); |
|||
} |
|||
} |
|||
|
|||
class TexturedCheckerboard : VisualElement |
|||
{ |
|||
static readonly Vertex[] k_Vertices = new Vertex[4]; |
|||
static readonly ushort[] k_Indices = { 0, 1, 2, 2, 3, 0 }; |
|||
|
|||
static TexturedCheckerboard() |
|||
{ |
|||
k_Vertices[0].tint = Color.white; |
|||
k_Vertices[1].tint = Color.white; |
|||
k_Vertices[2].tint = Color.white; |
|||
k_Vertices[3].tint = Color.white; |
|||
} |
|||
|
|||
public TexturedCheckerboard() |
|||
{ |
|||
generateVisualContent += OnGenerateVisualContent; |
|||
m_Texture = AssetDatabase.LoadAssetAtPath<Texture2D>(AssetDatabase.GUIDToAssetPath("edb91687c58d28f4cbec9a58f96ab223")); |
|||
} |
|||
|
|||
Texture2D m_Texture; |
|||
|
|||
void OnGenerateVisualContent(MeshGenerationContext mgc) |
|||
{ |
|||
Rect r = contentRect; |
|||
if (r.width < 0.01f || r.height < 0.01f) |
|||
return; // Skip rendering when too small.
|
|||
|
|||
float left = 0; |
|||
float right = r.width; |
|||
float top = 0; |
|||
float bottom = r.height; |
|||
|
|||
k_Vertices[0].position = new Vector3(left, bottom, Vertex.nearZ); |
|||
k_Vertices[1].position = new Vector3(left, top, Vertex.nearZ); |
|||
k_Vertices[2].position = new Vector3(right, top, Vertex.nearZ); |
|||
k_Vertices[3].position = new Vector3(right, bottom, Vertex.nearZ); |
|||
|
|||
MeshWriteData mwd = mgc.Allocate(k_Vertices.Length, k_Indices.Length, m_Texture); |
|||
|
|||
// Remap 0..1 to the uv region.
|
|||
Rect uvs = mwd.uvRegion; |
|||
k_Vertices[0].uv = new Vector2(uvs.xMin, uvs.yMin); |
|||
k_Vertices[1].uv = new Vector2(uvs.xMin, uvs.yMax); |
|||
k_Vertices[2].uv = new Vector2(uvs.xMax, uvs.yMax); |
|||
k_Vertices[3].uv = new Vector2(uvs.xMax, uvs.yMin); |
|||
|
|||
mwd.SetAllVertices(k_Vertices); |
|||
mwd.SetAllIndices(k_Indices); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 42faf39939a03d345a96f50cca901992 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
{ |
|||
"name": "Unity.UIElements.Samples.Editor", |
|||
"references": [ |
|||
"UnityEngine.UIElementsModule", |
|||
"UnityEditor.UIElementsModule", |
|||
"UnityEngine.UIElementsGameObjectsModule", |
|||
"UnityEditor.UIElementsGameObjectsModule", |
|||
"Unity.UIElements.Samples" |
|||
], |
|||
"includePlatforms": [ |
|||
"Editor" |
|||
], |
|||
"excludePlatforms": [], |
|||
"allowUnsafeCode": false, |
|||
"overrideReferences": false, |
|||
"precompiledReferences": [], |
|||
"autoReferenced": true, |
|||
"defineConstraints": [], |
|||
"versionDefines": [], |
|||
"noEngineReferences": false |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 4d738b43f606032479ba010ce2efa26a |
|||
AssemblyDefinitionImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: d18b1af556ebb6540b06cd1b0882259a |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 9bede5c1ecd5043b4a93de743a6f338a |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &-8700231687226190748 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_Name: Anton Atlas Material |
|||
m_Shader: {fileID: 19011, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _MainTex: |
|||
m_Texture: {fileID: 3238707270108421813} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Ints: [] |
|||
m_Floats: |
|||
- _FaceDilate: 0 |
|||
- _GradientScale: 10 |
|||
- _OutlineSoftness: 0 |
|||
- _OutlineWidth: 0 |
|||
- _ScaleRatioA: 1 |
|||
- _ScaleRatioB: 1 |
|||
- _ScaleRatioC: 1 |
|||
- _ScaleX: 1 |
|||
- _ScaleY: 1 |
|||
- _ShaderFlags: 0 |
|||
- _Sharpness: 0 |
|||
- _TextureHeight: 1024 |
|||
- _TextureWidth: 1024 |
|||
- _UnderlayDilate: 0 |
|||
- _UnderlayOffsetX: 0 |
|||
- _UnderlayOffsetY: 0 |
|||
- _UnderlaySoftness: 0 |
|||
- _VertexOffsetX: 0 |
|||
- _VertexOffsetY: 0 |
|||
- _WeightBold: 0.75 |
|||
- _WeightNormal: 0 |
|||
m_Colors: |
|||
- _FaceColor: {r: 1, g: 1, b: 1, a: 1} |
|||
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} |
|||
m_BuildTextureStacks: [] |
|||
--- !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: 11500000, guid: 9a8fdda5b4c5f6544bbac8a17c59089c, type: 3} |
|||
m_Name: Anton SDF |
|||
m_EditorClassIdentifier: |
|||
m_Version: 1.1.0 |
|||
m_Material: {fileID: -8700231687226190748} |
|||
m_SourceFontFileGUID: a3f9edbcc0a2c49a49fbf48fdd5e6250 |
|||
m_SourceFontFile: {fileID: 12800000, guid: a3f9edbcc0a2c49a49fbf48fdd5e6250, type: 3} |
|||
m_AtlasPopulationMode: 1 |
|||
m_FaceInfo: |
|||
m_FaceIndex: 0 |
|||
m_FamilyName: Anton |
|||
m_StyleName: Regular |
|||
m_PointSize: 90 |
|||
m_Scale: 1 |
|||
m_LineHeight: 132.05566 |
|||
m_AscentLine: 102.43652 |
|||
m_CapLine: 70 |
|||
m_MeanLine: 66 |
|||
m_Baseline: 0 |
|||
m_DescentLine: -29.61914 |
|||
m_SuperscriptOffset: 102.43652 |
|||
m_SuperscriptSize: 0.5 |
|||
m_SubscriptOffset: -29.61914 |
|||
m_SubscriptSize: 0.5 |
|||
m_UnderlineOffset: -13.491211 |
|||
m_UnderlineThickness: 4.482422 |
|||
m_StrikethroughOffset: 26.4 |
|||
m_StrikethroughThickness: 4.482422 |
|||
m_TabWidth: 21 |
|||
m_FontWeightTable: |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
- regularTypeface: {fileID: 0} |
|||
italicTypeface: {fileID: 0} |
|||
m_GlyphTable: [] |
|||
m_CharacterTable: [] |
|||
m_AtlasTextures: |
|||
- {fileID: 3238707270108421813} |
|||
m_AtlasTextureIndex: 0 |
|||
m_IsMultiAtlasTexturesEnabled: 0 |
|||
m_ClearDynamicDataOnBuild: 0 |
|||
m_AtlasWidth: 1024 |
|||
m_AtlasHeight: 1024 |
|||
m_AtlasPadding: 9 |
|||
m_AtlasRenderMode: 4165 |
|||
m_UsedGlyphRects: [] |
|||
m_FreeGlyphRects: |
|||
- m_X: 0 |
|||
m_Y: 0 |
|||
m_Width: 1023 |
|||
m_Height: 1023 |
|||
m_FontFeatureTable: |
|||
m_GlyphPairAdjustmentRecords: [] |
|||
m_FallbackFontAssetTable: [] |
|||
m_fontAssetCreationEditorSettings: |
|||
sourceFontFileGUID: a3f9edbcc0a2c49a49fbf48fdd5e6250 |
|||
pointSizeSamplingMode: 0 |
|||
pointSize: 90 |
|||
padding: 9 |
|||
packingMode: 0 |
|||
atlasWidth: 1024 |
|||
atlasHeight: 1024 |
|||
characterSetSelectionMode: 7 |
|||
characterSequence: |
|||
referencedFontAssetGUID: |
|||
referencedTextAssetGUID: |
|||
fontStyle: 0 |
|||
fontStyleModifier: 0 |
|||
renderMode: 4165 |
|||
includeFontFeatures: 0 |
|||
m_RegularStyleWeight: 0 |
|||
m_RegularStyleSpacing: 0 |
|||
m_BoldStyleWeight: 0.75 |
|||
m_BoldStyleSpacing: 7 |
|||
m_ItalicStyleSlant: 35 |
|||
m_TabMultiple: 10 |
|||
--- !u!28 &3238707270108421813 |
|||
Texture2D: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_Name: Anton Atlas |
|||
m_ImageContentsHash: |
|||
serializedVersion: 2 |
|||
Hash: 00000000000000000000000000000000 |
|||
m_ForcedFallbackFormat: 4 |
|||
m_DownscaleFallback: 0 |
|||
m_IsAlphaChannelOptional: 0 |
|||
serializedVersion: 2 |
|||
m_Width: 0 |
|||
m_Height: 0 |
|||
m_CompleteImageSize: 0 |
|||
m_MipsStripped: 0 |
|||
m_TextureFormat: 1 |
|||
m_MipCount: 1 |
|||
m_IsReadable: 1 |
|||
m_IsPreProcessed: 0 |
|||
m_IgnoreMasterTextureLimit: 0 |
|||
m_StreamingMipmaps: 0 |
|||
m_StreamingMipmapsPriority: 0 |
|||
m_VTOnly: 0 |
|||
m_AlphaIsTransparency: 0 |
|||
m_ImageCount: 1 |
|||
m_TextureDimension: 2 |
|||
m_TextureSettings: |
|||
serializedVersion: 2 |
|||
m_FilterMode: 1 |
|||
m_Aniso: 1 |
|||
m_MipBias: 0 |
|||
m_WrapU: 0 |
|||
m_WrapV: 0 |
|||
m_WrapW: 0 |
|||
m_LightmapFormat: 0 |
|||
m_ColorSpace: 0 |
|||
m_PlatformBlob: |
|||
image data: 0 |
|||
_typelessdata: |
|||
m_StreamData: |
|||
serializedVersion: 2 |
|||
offset: 0 |
|||
size: 0 |
|||
path: |
|
|||
fileFormatVersion: 2 |
|||
guid: fa2a1e7d97af84b948311296360f34cd |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |