Commit Graph

234 Commits

Author SHA1 Message Date
Wojciech Figat
f1f5dacb6f Add unit test to verify LibraryImport attributes usage for proper bindings 2023-01-24 09:25:39 +01:00
Wojciech Figat
405ae519dd Refactor generated bindings P/Invoke to support name mangling for symbols 2023-01-23 18:41:12 +01:00
Wojciech Figat
f3366178ea Refactor manually written managed bindings to use C-style exported P/Invoke 2023-01-23 18:14:38 +01:00
Wojciech Figat
7b20bc38a4 Merge branch '1.5' into dotnet7
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Tools/Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs
2023-01-17 11:52:52 +01:00
Wojtek Figat
eff24ed836 Add support for editing path to the asset within AssetRefEditor 2023-01-15 23:05:58 +01:00
Wojtek Figat
f127bbebe1 Refactor enum flags with __underlying_type and new EnumHasAnyFlags/EnumHasAllFlags
Fixes #832
Closes #886
2023-01-15 12:44:39 +01:00
Wojciech Figat
eebc4951de Merge branch '1.5' into dotnet7
# Conflicts:
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit-agent.exe
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.api.dll
#	Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.core.dll
#	Source/Platforms/DotNet/NUnit/agents/net7.0/nunit.agent.addins
#	Source/Platforms/DotNet/NUnit/nunit.engine.api.dll
#	Source/Platforms/DotNet/NUnit/nunit.engine.core.dll
#	Source/Platforms/DotNet/NUnit/nunit.engine.dll
#	Source/Platforms/DotNet/NUnit/nunit3-console.exe
#	Source/Platforms/DotNet/NUnit/nunit3-console.exe.config
#	Source/Platforms/DotNet/NUnit/testcentric.engine.metadata.dll
#	Source/Tools/Flax.Build/Deps/Downloader.cs
#	Source/Tools/Flax.Stats/CodeFrame.cs
#	Source/Tools/Flax.Stats/CodeFrameNode.cs
#	Source/Tools/Flax.Stats/Flax.Stats.Build.cs
#	Source/Tools/Flax.Stats/Languages.cs
#	Source/Tools/Flax.Stats/Program.cs
#	Source/Tools/Flax.Stats/TaskType.cs
#	Source/Tools/Flax.Stats/Tools.cs
#	Source/Tools/FlaxEngine.Tests/TestEditorUtils.cs
2023-01-10 15:49:44 +01:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojtek Figat
a74b847e65 Fix ScriptingObject::FromInterface to return object if the pointer is already valid object 2023-01-10 11:45:23 +01:00
Wojtek Figat
4e4f4e700b Updates for dev with dotnet on linux 2023-01-08 20:27:28 +01:00
Wojtek Figat
c53af39c92 Merge remote-tracking branch 'origin/1.5' into dotnet7 2023-01-08 15:05:56 +01:00
Wojciech Figat
b753b18682 Add profiler events for plugins init/deinit 2023-01-06 13:36:12 +01:00
Wojtek Figat
63d3c9b1e0 Fix build on Linux 2023-01-04 19:00:06 +01:00
Wojtek Figat
4012434102 Fix test 2023-01-03 23:04:09 +01:00
Wojciech Figat
26f8e5aa9e Use embedded debug information for C# dll to have proper stack trace information on game scripts exceptions 2023-01-03 18:38:44 +01:00
Wojciech Figat
dea307179f Merge branch 'dotnet7' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet7
# Conflicts:
#	Source/Engine/Engine/NativeInterop.cs
2023-01-02 11:04:36 +01:00
Wojciech Figat
d3cdca6b33 Merge remote-tracking branch 'origin/1.5' into dotnet7 2023-01-02 10:37:04 +01:00
Wojtek Figat
a10fb703fc Add unit test for scripting interface to ensure generated bindings code works fine 2022-12-31 13:10:19 +01:00
8b80f73641 Implement ManagedHandle replacement for GCHandles
Allows for more controlled management of weak handles, increasing their lifetime for slightly longer than with GCHandles.
2022-12-30 22:14:48 +02:00
Wojciech Figat
71e2cbe856 Minor tweaks to dotnet interop 2022-12-30 15:36:35 +01:00
Wojtek Figat
c48a81a068 Merge branch '1.5' into dotnet7
# Conflicts:
#	Source/Editor/Managed/ManagedEditor.Internal.cpp
#	Source/Engine/Core/Config/LayersAndTagsSettings.cs
2022-12-28 18:49:14 +01:00
Wojtek Figat
3a393b6825 Fix crash on Clang-platforms when calling base method from overriden scripting method (C# or Visual Script) 2022-12-28 16:56:52 +01:00
Wojtek Figat
7859e64db1 Fix crash on Clang-platforms when calling base method from overriden scripting method (C# or Visual Script) 2022-12-28 16:28:50 +01:00
d3e02e23e5 Cleanup 2022-12-27 19:40:50 +02:00
f12475ea99 Prefer NativeMemory.AlignedAlloc over Marshal.Alloc* 2022-12-27 19:08:56 +02:00
Wojciech Figat
c53bf2b7e3 Fix crash when catching exception in managed code but native code ignores it in dotnet7 2022-12-27 13:50:38 +01:00
Wojciech Figat
219ad40088 Fix exception when using null version object for marshalling into native data 2022-12-27 13:50:11 +01:00
Wojciech Figat
d8805dc801 Tweaks 2022-12-24 15:24:51 +01:00
759a9bd365 Fix native library resolver not working after hot-reload 2022-12-24 03:13:40 +02:00
80c3056daf Fix errors when compiling plugins 2022-12-23 22:33:22 +02:00
Wojtek Figat
8918c71312 Update old header usage 2022-12-22 19:31:01 +01:00
2e502ce82a Cache managed type MonoTypeEnum values 2022-12-22 20:17:06 +02:00
3c79be2910 Cleanup 2022-12-22 20:16:02 +02:00
Wojciech Figat
94c5211ee6 Rename gchandle to MGCHandle 2022-12-22 13:02:00 +01:00
Wojciech Figat
04799c89dc Merge branch 'dotnet7' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dotnet7 2022-12-21 12:28:55 +01:00
Wojciech Figat
9a5c105db9 Merge branch '1.5' into dotnet7 2022-12-21 10:35:58 +01:00
55747edaae Cleanup 2022-12-21 00:40:38 +02:00
Wojciech Figat
f874a0ad57 Update csprojects to the latest NetCore7 2022-12-19 17:39:39 +01:00
b9f11298e8 Avoid pre-allocating custom attributes for managed types 2022-12-17 15:39:04 +02:00
fcd1366d26 Fix memory leaks caused by unreleased GCHandles 2022-12-02 00:06:32 +02:00
76ee695a59 Cleanup and minor fixes 2022-11-27 14:45:55 +02:00
Wojtek Figat
8e52e2fb10 Merge branch 'master' into 1.5 2022-11-27 12:11:50 +01:00
3b80a01813 Fix build errors on Linux 2022-11-26 23:20:13 +02:00
96dc279ebd Implement .NET 7 runtime support and bindings generation 2022-11-26 14:37:07 +02:00
c4be764f61 Add nethost module and EngineConfiguration for .NET runtime 2022-11-26 13:50:32 +02:00
Wojtek Figat
76c1045444 Code cleanup after #823 2022-11-23 19:18:30 +01:00
Wojtek Figat
b581bf7bac Merge branch 'Better-Actor-Toolbox' of https://github.com/Tryibion/FlaxEngine into Tryibion-Better-Actor-Toolbox 2022-11-23 19:02:26 +01:00
Wojtek Figat
2ad6eb0c72 Merge branch 'master' into 1.5 2022-11-22 19:58:53 +01:00
Wojtek Figat
af244718be Merge branch 'organized-content-new-cm' of https://github.com/Tryibion/FlaxEngine into Tryibion-organized-content-new-cm 2022-11-21 16:15:04 +01:00