Upgrade to Unity 2021.3.6f1 LTS

Converted remaining .blend files to .fbx
Type check safe cast operator broken in DictionaryInspector? Wrote around it
UI Materials not blending properly - fixed by switching to Fade transparency mode
This commit is contained in:
Reinier Vens 2022-07-17 23:20:50 +01:00
commit bbf1d53d1c
103 changed files with 2372 additions and 458 deletions

View file

@ -1,4 +1,13 @@
// GENERATED AUTOMATICALLY FROM 'Assets/Resources/Aetheria.inputactions'
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.3.0
// from Assets/Resources/Aetheria.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
@ -6,7 +15,7 @@ using System.Collections.Generic;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Utilities;
public class @AetheriaInput : IInputActionCollection, IDisposable
public partial class @AetheriaInput : IInputActionCollection2, IDisposable
{
public InputActionAsset asset { get; }
public @AetheriaInput()
@ -24,7 +33,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""197ba05c-054a-44fc-8328-0d37e8ac00db"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Look"",
@ -32,7 +42,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""323b9ea0-f916-4609-b697-322fc0ef9420"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Minimap Zoom"",
@ -40,7 +51,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""5708685d-78bd-4d2b-8796-712704f21bfb"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Target Reticle"",
@ -48,7 +60,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""86f2e6cc-b895-4c55-aa19-70220df477d2"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Target Previous"",
@ -56,7 +69,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""2cf8e2b2-1463-463b-8f55-e79884f3767d"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Target Next"",
@ -64,7 +78,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""1e2bd5af-e174-4533-8c57-b04b7e9df92c"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Target Nearest"",
@ -72,7 +87,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""b2a42777-c22b-48f3-9e74-8dc715449845"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Toggle Heatsinks"",
@ -80,7 +96,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""e6c6ff6a-4ac2-4e53-a3c9-9461f52e723f"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Toggle Shield"",
@ -88,7 +105,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""5566504f-ee89-4eb9-9bbb-03f4b22dfe7d"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Override Shutdown"",
@ -96,7 +114,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""62a64686-4670-43c9-81ee-bbb8578e284b"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Ping"",
@ -104,7 +123,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""cfc95f69-9b8a-41d5-a071-003b4e292524"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Hide UI"",
@ -112,7 +132,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""1cdb2515-91e1-4895-879d-8a7347e60b21"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Tractor Beam"",
@ -120,7 +141,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""e61d5d8e-eaf7-449d-8d54-624e15b6c964"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
@ -367,7 +389,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""add1d35f-58cd-4789-8868-f0afb51d87bc"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Submit"",
@ -375,7 +398,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""766f9151-3f3d-4e12-8ade-ce5aacd3940f"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Cancel"",
@ -383,7 +407,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""9dc56d99-ed81-42c3-b38d-1a7e76688b34"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Point"",
@ -391,7 +416,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""dfeef3e2-b0cc-4a9c-97ea-48ab693ac37f"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Click"",
@ -399,7 +425,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""aae7decd-7584-44f4-87ad-09c14c406ead"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""ScrollWheel"",
@ -407,7 +434,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""25891af2-479b-4104-9a29-158aee22fa73"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""MiddleClick"",
@ -415,7 +443,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""dc9af334-4f90-46dc-9b77-f381faa04a79"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""RightClick"",
@ -423,7 +452,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""27901940-469e-42cd-92b3-f5f787a8d1d6"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Drag"",
@ -431,7 +461,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""0c96ec22-9571-46c8-94bf-199e70e919ed"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
@ -821,7 +852,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""e43f020b-dec0-43d2-a83b-1390d45819be"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Galaxy Map"",
@ -829,7 +861,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""d198f18c-8c55-4a31-a694-4959c763f664"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Inventory"",
@ -837,7 +870,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""dafe13a7-da46-408e-853e-6954e37da5c8"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Main Menu"",
@ -845,7 +879,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""0515c617-9dff-406f-ab3e-763971d532d3"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Input Screen"",
@ -853,7 +888,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""e76aa7e9-e24d-47e1-865d-ffe72ba5c1c2"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Interact"",
@ -861,7 +897,8 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
""id"": ""31f7b7e1-d15e-40e8-b74f-2d0dc4195d4d"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """"
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@ -1054,6 +1091,16 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
{
asset.Disable();
}
public IEnumerable<InputBinding> bindings => asset.bindings;
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
{
return asset.FindAction(actionNameOrId, throwIfNotFound);
}
public int FindBinding(InputBinding bindingMask, out InputAction action)
{
return asset.FindBinding(bindingMask, out action);
}
// Player
private readonly InputActionMap m_Player;

View file

@ -52,8 +52,8 @@ public class FloatDictionaryInspector : BaseInspector<Dictionary<Guid, float>, I
if (v.rect.Contains(Event.current.mousePosition))
{
var dragData = DragAndDrop.GetGenericData("Item");
var isId = dragData is Guid guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get(guid) : null;
var isId = dragData is Guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get((Guid)dragData) : null;
var correctType = attribute.EntryType.IsInstanceOfType(dragEntry);
if(Event.current.type == EventType.DragUpdated)
DragAndDrop.visualMode = correctType ? DragAndDropVisualMode.Copy : DragAndDropVisualMode.Rejected;
@ -62,7 +62,7 @@ public class FloatDictionaryInspector : BaseInspector<Dictionary<Guid, float>, I
if (isId && correctType)
{
DragAndDrop.AcceptDrag();
value[guid] = 1;
value[(Guid)dragData] = 1;
GUI.changed = true;
}
}
@ -121,8 +121,8 @@ public class RangedFloatDictionaryInspector : BaseInspector<Dictionary<Guid, flo
if (v.rect.Contains(Event.current.mousePosition))
{
var dragData = DragAndDrop.GetGenericData("Item");
var isId = dragData is Guid guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get(guid) : null;
var isId = dragData is Guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get((Guid)dragData) : null;
var correctType = link.EntryType.IsInstanceOfType(dragEntry);
if(Event.current.type == EventType.DragUpdated)
DragAndDrop.visualMode = correctType ? DragAndDropVisualMode.Copy : DragAndDropVisualMode.Rejected;
@ -131,7 +131,7 @@ public class RangedFloatDictionaryInspector : BaseInspector<Dictionary<Guid, flo
if (isId && correctType)
{
DragAndDrop.AcceptDrag();
value[guid] = range.Max;
value[(Guid)dragData] = range.Max;
GUI.changed = true;
}
}
@ -189,8 +189,8 @@ public class IntDictionaryInspector : BaseInspector<Dictionary<Guid, int>, Inspe
if (v.rect.Contains(Event.current.mousePosition))
{
var dragData = DragAndDrop.GetGenericData("Item");
var isId = dragData is Guid guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get(guid) : null;
var isId = dragData is Guid;
var dragEntry = isId ? DatabaseInspector.CultCache.Get((Guid)dragData) : null;
var correctType = attribute.EntryType.IsInstanceOfType(dragEntry);
if(Event.current.type == EventType.DragUpdated)
DragAndDrop.visualMode = correctType ? DragAndDropVisualMode.Copy : DragAndDropVisualMode.Rejected;
@ -199,7 +199,7 @@ public class IntDictionaryInspector : BaseInspector<Dictionary<Guid, int>, Inspe
if (isId && correctType)
{
DragAndDrop.AcceptDrag();
value[guid] = 1;
value[(Guid)dragData] = 1;
GUI.changed = true;
}
}