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
Wojtek Figat
63d3c9b1e0
Fix build on Linux
2023-01-04 19:00:06 +01:00
d3e02e23e5
Cleanup
2022-12-27 19:40:50 +02:00
759a9bd365
Fix native library resolver not working after hot-reload
2022-12-24 03:13:40 +02:00
Wojciech Figat
94c5211ee6
Rename gchandle to MGCHandle
2022-12-22 13:02:00 +01:00
55747edaae
Cleanup
2022-12-21 00:40:38 +02: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
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
Wojciech Figat
c0f596a00e
Add ScriptingObjectReference for Read/WriteStream and scripting interop as an array
2022-11-16 17:31:26 +01:00
Wojciech Figat
0dec70847f
Add support for StringAnsi in scripting api
2022-10-26 15:00:39 +02:00
Wojciech Figat
76b14af7ec
Add various improvements
2022-10-18 15:03:56 +02:00
Wojciech Figat
5c24f8c365
Add ScriptingTypeHandle support for scripting bindings as System.Type
2022-10-13 13:35:15 +02:00
Wojciech Figat
74fe176d2d
Improvements for const class usage
2022-09-05 14:34:16 +02:00
Wojtek Figat
bdb69d57dd
Refactor Plugins system to support plugins in C++ scripts
2022-07-28 21:05:03 +02:00
Wojtek Figat
a881c90b2e
Refactor engine to support double-precision vectors
2022-06-13 00:40:32 +02:00
Wojtek Figat
e43ef605c2
Minor improvements
2022-05-20 18:12:29 +02:00
Wojtek Figat
ed908a260e
Add support for Double2/3/4 for Variant
...
Increase size to 40 bytes to store Double3 without allocations
Change Ray and BoundingBox to be stored inlined in BoundingBox
Use safer accessors to read Variant explicit data type
2022-05-20 18:10:35 +02:00