canvas fixes

This commit is contained in:
2022-11-01 18:07:06 +01:00
parent 0315897b31
commit 1326152626
5 changed files with 910 additions and 2571 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,52 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class movement : MonoBehaviour
{
public Collider2D oneone_Collider;
public Camera THE_Camera;
public GameObject oneone;
public GameObject twoone;
public GameObject threeone;
public GameObject onetwo;
public GameObject twotwo;
public GameObject threetwo;
public GameObject onethree;
public GameObject twothree;
public GameObject threethree;
public GameObject onefour;
public GameObject twofour;
public GameObject threefour;
public GameObject player;
string[,] arr2d = new string[4, 3]
{
{"oneone", "twoone", "threeone" },
{"onetwo", "twotwo", "threetwo" },
{"onethree", "twothree", "threethree" },
{"onefour", "twofour", "threefour" }
};
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
public void FixedUpdate()
{
//new WaitForSeconds(2);
//player.transform.position = oneone.transform.position;
if (Input.GetKeyDown(KeyCode.Mouse0) && oneone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition)))
{
Debug.Log("Player clicked on the collider: " + oneone_Collider.gameObject.name);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 413457e37755a704786899a2420c6b9a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -24,7 +24,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 131
controlID: 119
--- !u!114 &2
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -45,8 +45,8 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 232
y: 73
x: 233
y: 19
width: 1252
height: 582
m_ViewDataDictionary: {fileID: 0}
@@ -86,7 +86,7 @@ MonoBehaviour:
m_HSlider: 0
m_VSlider: 0
m_IgnoreScrollWheelUntilClicked: 0
m_EnableMouseInput: 1
m_EnableMouseInput: 0
m_EnableSliderZoomHorizontal: 0
m_EnableSliderZoomVertical: 0
m_UniformScale: 1
@@ -141,7 +141,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 132
controlID: 120
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -166,7 +166,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 133
controlID: 121
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -186,8 +186,8 @@ MonoBehaviour:
y: 0
width: 232
height: 603
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 6}
m_Panes:
- {fileID: 6}
@@ -226,7 +226,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: eae4ffffece4fffff2e4fffff4e4fffff6e4fffffae4fffffce4fffff8e6ffff52e9ffff22ecffff30ecffff82f3ffff84f3ffffb0f3ffffb8f3ffffbaf3ffffbcf3fffffaf5fffffcf5ffff46f6ffff4af6ffff58f6ffff5af6ffff92f9ffff94f9ffff2afbffff1c60000038600000
m_ExpandedIDs: 22fbffff2660000062640000d2640000cc650000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -557,9 +557,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: -4.534178, y: -4.9426284, z: 0.5807161}
m_Target: {x: -4.847948, y: -0.7561184, z: 0.70453775}
speed: 2
m_Value: {x: -4.534178, y: -4.9426284, z: 0.5807161}
m_Value: {x: -4.847948, y: -0.7561184, z: 0.70453775}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@@ -610,9 +610,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 18.948221
m_Target: 6.0895452
speed: 2
m_Value: 18.948221
m_Value: 6.0895452
m_Ortho:
m_Target: 1
speed: 2
@@ -661,7 +661,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 54
controlID: 71
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -681,8 +681,8 @@ MonoBehaviour:
y: 0
width: 759
height: 344
m_MinSize: {x: 231, y: 271}
m_MaxSize: {x: 10001, y: 10021}
m_MinSize: {x: 230, y: 250}
m_MaxSize: {x: 10000, y: 10000}
m_ActualView: {fileID: 11}
m_Panes:
- {fileID: 11}
@@ -742,9 +742,9 @@ MonoBehaviour:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: fa600000
m_LastClickedID: 24826
m_ExpandedIDs: 00000000f0600000
m_SelectedIDs: 56660000
m_LastClickedID: 26198
m_ExpandedIDs: 000000004c660000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -772,7 +772,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000f0600000
m_ExpandedIDs: 000000004c660000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -797,9 +797,9 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_ListAreaState:
m_SelectedInstanceIDs: 2cedffff
m_LastClickedInstanceID: -4820
m_HadKeyboardFocusLastEvent: 0
m_SelectedInstanceIDs: 945f0000
m_LastClickedInstanceID: 24468
m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs: c623000000000000
m_RenameOverlay:
m_UserAcceptedRename: 0
@@ -901,8 +901,8 @@ MonoBehaviour:
y: 0
width: 434
height: 947
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
@@ -942,7 +942,7 @@ MonoBehaviour:
m_CachedPref: 160
m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview
m_LastInspectedObjectInstanceID: -4820
m_LastInspectedObjectInstanceID: 24468
m_LastVerticalScrollValue: 0
m_GlobalObjectId:
m_InspectorMode: 0

View File

@@ -119,7 +119,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 5261
controlID: 61
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -144,7 +144,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 5302
controlID: 90
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -169,7 +169,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 5303
controlID: 91
--- !u!114 &8
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -206,7 +206,7 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: SceneView
m_Name: GameView
m_EditorClassIdentifier:
m_Children: []
m_Position:
@@ -217,12 +217,12 @@ MonoBehaviour:
height: 603
m_MinSize: {x: 202, y: 221}
m_MaxSize: {x: 4002, y: 4021}
m_ActualView: {fileID: 16}
m_ActualView: {fileID: 14}
m_Panes:
- {fileID: 16}
- {fileID: 14}
m_Selected: 0
m_LastSelected: 1
m_Selected: 1
m_LastSelected: 0
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -247,7 +247,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 5267
controlID: 102
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -346,8 +346,8 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 233
y: 19
x: 232
y: 73
width: 1252
height: 582
m_ViewDataDictionary: {fileID: 0}
@@ -364,7 +364,7 @@ MonoBehaviour:
m_TextureFilterMode: 0
m_TextureHideFlags: 61
m_RenderIMGUI: 1
m_EnterPlayModeBehavior: 1
m_EnterPlayModeBehavior: 0
m_UseMipMap: 0
m_VSyncEnabled: 0
m_Gizmos: 0
@@ -387,7 +387,7 @@ MonoBehaviour:
m_HSlider: 0
m_VSlider: 0
m_IgnoreScrollWheelUntilClicked: 0
m_EnableMouseInput: 0
m_EnableMouseInput: 1
m_EnableSliderZoomHorizontal: 0
m_EnableSliderZoomVertical: 0
m_UniformScale: 1
@@ -451,7 +451,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: eae4ffffece4fffff2e4fffff4e4fffff6e4fffffae4fffffce4fffff8e6ffff52e9ffff22ecffff30ecffff82f3ffff84f3ffffb0f3ffffb8f3ffffbaf3ffffbcf3fffffaf5fffffcf5ffff46f6ffff4af6ffff58f6ffff5af6ffff92f9ffff94f9ffff2afbffff1c60000038600000
m_ExpandedIDs: 2afbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -755,9 +755,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: -4.534178, y: -4.9426284, z: 0.5807161}
m_Target: {x: -0.35612154, y: -1.0795698, z: -0.06019483}
speed: 2
m_Value: {x: -4.534178, y: -4.9426284, z: 0.5807161}
m_Value: {x: -0.35612154, y: -1.0795698, z: -0.06019483}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@@ -808,9 +808,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 18.948221
m_Target: 11.6904125
speed: 2
m_Value: 18.948221
m_Value: 11.6904125
m_Ortho:
m_Target: 1
speed: 2
@@ -889,9 +889,9 @@ MonoBehaviour:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: fa600000
m_LastClickedID: 24826
m_ExpandedIDs: 00000000f0600000
m_SelectedIDs: a4650000
m_LastClickedID: 26020
m_ExpandedIDs: 000000009a650000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -919,7 +919,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000f0600000
m_ExpandedIDs: 000000009a650000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name: