Commit Graph

130 Commits

Author SHA1 Message Date
Wojtek Figat
a839cf796b Fix MUtils::GetClass for Float2 2024-11-18 14:42:13 +01:00
Wojtek Figat
1181deb5df Fix crash when using attributes cache after hot-reload in editor 2024-10-25 13:25:36 +02:00
Wojtek Figat
e860f969be Add attributes support for dotnet interop for methods, fields and properties 2024-10-04 15:59:34 +02:00
Wojtek Figat
aba46cb2c6 Fix naming convention in scripting backend for klass 2024-09-22 12:30:34 +02:00
e77ae12b9b Fix unboxing of array type Variants 2024-05-05 13:15:54 +03:00
Wojtek Figat
14902dc29e Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Flax.flaxproj
2024-02-26 19:49:39 +01:00
Wojtek Figat
f4d236d353 Fix crash on invalid string converted to managed string 2024-02-26 19:01:46 +01:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
d7dbc0fbdc Fix opening projects with PostFx material assigned in Graphics Settings
#1993
2024-02-21 20:21:45 +01:00
Wojtek Figat
69b7a10c1f Add Stopwatch for accurate duration measuring 2024-01-28 20:31:03 +01:00
Wojtek Figat
cebd28c3a7 Revert fd938e8284 2023-11-29 18:46:18 +01:00
Wojtek Figat
8ff4f95cef Optimize some code and cleanup code style in natvis file 2023-11-28 16:02:51 +01:00
Wojtek Figat
35ebdb0ffe Refactor INetworkDriver::PopEvent to use network event as output parameter rather than raw pointer
#1992
2023-11-28 11:24:17 +01:00
Wojtek Figat
fd938e8284 Fix incorrect pointer marshalling from Variant to managed runtime
#1992
2023-11-28 11:22:14 +01:00
Wojtek Figat
3320c76e14 Add soft check for null managed object value for unboxing 2023-11-14 11:23:15 +01:00
Wojtek Figat
bc762761dd Fix engine when used without C# scripting at all 2023-10-11 12:35:27 +02:00
Wojtek Figat
d10d52ec0c Add thread-safety to various scripting methods 2023-10-01 10:57:51 +02:00
Wojtek Figat
82b2f46b48 Post-merge tweaks for #1312 2023-09-28 19:21:06 +02:00
Wojtek Figat
279528a30d Merge branch 'marshalling_scriptingobject_changes' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-marshalling_scriptingobject_changes
# Conflicts:
#	Source/Engine/Engine/NativeInterop.Unmanaged.cs
#	Source/Engine/Scripting/Runtime/DotNet.cpp
2023-09-28 18:41:20 +02:00
Wojtek Figat
8bd6649510 Refactor managed array unboxing to handle case of C# array passes as object
#1415
2023-09-20 14:17:11 +02:00
Wojtek Figat
48d4a51c1b Fix crash when boxing native array to managed value 2023-09-11 15:06:26 +02:00
53b1d0dd85 Optimize ScriptingObject managed initialization 2023-08-13 23:56:27 +03:00
9d8105e3f3 Separate managed assembly unloading and scripting ALC reinitialization
Fixes an issue with multiple managed assemblies unloading and releasing
all cached data before native resources were fully released in other
assemblies.
2023-08-08 17:39:31 +03:00
Wojtek Figat
11bb6d4364 Fix crash when using custom Anim Graph node (.NET 7 regression) 2023-07-24 14:23:28 +02:00
Wojtek Figat
144b72109b Fix crash after scripting hot-reload in editor due to cached class attribute objects
#1108
2023-05-19 13:53:49 +02:00
Wojtek Figat
4e78b49cac Improve managed exceptions logging 2023-05-10 20:42:18 +02:00
Wojtek Figat
ac67813198 Optimize code to alloc memory manually in #1088 2023-05-10 09:31:54 +02:00
Wojtek Figat
c73897ce7f Merge branch 'object_array_marshalling' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-object_array_marshalling 2023-05-10 09:22:22 +02:00
da149d32cf Force GC to run periodically in order to reduce stuttering 2023-05-08 23:29:39 +03:00
cae07f3623 Optimize marshalling managed arrays of object references 2023-05-08 23:28:49 +03:00
Wojtek Figat
f046642ba7 Improve stability by fixing various crashes with dotnet7 2023-04-18 12:36:33 +02:00
Wojtek Figat
67b373c6df Merge remote-tracking branch 'origin/master' into 1.6 2023-04-17 13:18:08 +02:00
Wojtek Figat
89704bebe9 Add Span<T> support for scripting fields 2023-04-14 15:01:22 +02:00
Wojtek Figat
29d0281932 Missing change 2023-03-31 19:37:55 +02:00
Wojtek Figat
e562a7d72c Fix loading C# assemblies from Mono AOT output 2023-03-31 18:31:25 +02:00
Wojtek Figat
bb27f85951 Optimize MCore::Array::GetAddress usage in MUtils 2023-03-29 10:39:20 +02:00
Wojtek Figat
0694f87b0d Fixes for Visual Scripting interop via C# on new dotnet7 hosting 2023-03-28 12:01:55 +02:00
Wojtek Figat
ed13de2d5b Fix using managed arrays with Variant in dotnet7 2023-03-27 19:41:53 +02:00
Wojtek Figat
510fc443e8 Refactor CoreCLR runtime into explicit dotnet api instead of mocking mono api
Required by platforms that will use mono under the hood for .Net 7
New `USE_CSHARP` define for C# ability
Engine doesn't use `mono_*` apis directly but via MCore/MClass/MMethod/ apis
2023-03-27 17:29:42 +02:00
Wojtek Figat
eed2cdfe04 Progress on dotnet7 runtime hosting with mono 2023-03-22 17:59:46 +01:00
Wojtek Figat
2c1409c2a4 Add macOS build for dotnet7 2023-02-19 13:31:57 +01:00
Wojtek Figat
ac59cc4633 Merge remote-tracking branch 'origin/master' into dotnet7 2023-02-13 10:05:51 +01:00
Wojtek Figat
6fb1e749bc Add support in GetScript to interface types
#290
2023-02-10 15:36:33 +01:00
Wojtek Figat
d58a77cc60 Add support in GetScript to interface types
#290
2023-02-10 15:36:02 +01:00
Wojtek Figat
547f4d1180 Fix missing getter/setter methods attributes 2023-02-06 10:43:08 +01:00
Wojtek Figat
4f71976958 CoreCRL fixes and tweaks 2023-01-27 14:24:53 +01:00
Wojtek Figat
02e3697817 Fix using proper engine native module for importing symbols 2023-01-24 10:13:08 +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