Wojtek Figat
694980160b
Merge remote-tracking branch 'origin/master' into 1.6
...
# Conflicts:
# Source/Editor/CustomEditors/CustomEditorsUtil.cs
# Source/Engine/Networking/NetworkReplicator.cpp
# Source/Engine/Scripting/ManagedCLR/MUtils.cpp
# Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs
2023-05-24 23:28:38 +02:00
Wojtek Figat
914f7b842e
Optimize interface method lookup to eliminate strlen
2023-05-23 18:22:23 +02:00
Wojtek Figat
2881ca17a0
Fix bindings code instance object param obj to __obj to prevent name collisions
2023-05-22 18:06:08 +02:00
Wojtek Figat
644eb35b97
Fix building bindings-only cross-platform with dotnet7
2023-04-18 20:25:06 +02:00
Wojtek Figat
8b2d3db3f1
Fix passing boxed reference values to managed thunk and properly unbox non-POD structures
2023-04-18 15:54:54 +02:00
Wojtek Figat
9322a2006a
Post merge fixes for new dotnet7
2023-04-17 14:04:08 +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
5ca6dae8c3
Fix crash in AOT build when platform has overridden AOT mode
2023-04-02 14:56:33 +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
aaaf7c5c37
Various fixes to scripting
2023-03-06 16:17:52 +01:00
Wojtek Figat
0112f70c05
Merge remote-tracking branch 'origin/master' into dotnet7
2023-03-01 19:50:22 +01:00
Wojtek Figat
bef4ba1829
Fix crash when cross-compiling C# bindings-only without toolchain installed
2023-02-19 18:17:51 +01:00
Wojtek Figat
c00769e2b8
Fix deprecation warning
2023-02-19 14:32:34 +01:00
Wojtek Figat
30fa911832
Merge remote-tracking branch 'origin/master' into dotnet7
...
# Conflicts:
# README.md
2023-02-16 09:54:22 +01:00
Wojtek Figat
cb83de4769
Fix compilation issues with various C++ scripting cases
2023-02-13 16:05:14 +01:00
Wojtek Figat
ac59cc4633
Merge remote-tracking branch 'origin/master' into dotnet7
2023-02-13 10:05:51 +01:00
Wojtek Figat
b8a7f36c85
Fix crash when passing boxes Vector2/3/4 type data to C# due to custom structure usage
2023-02-09 20:42:25 +01:00
Wojtek Figat
f5a37ec3b4
Final fix for full P/Invoke compatibility on Linux
2023-01-24 18:49:33 +01:00
Wojciech Figat
acb1cef19d
Use plain-C style exported function for P/Invoke bindings on Clang
2023-01-24 18:32:23 +01:00
Wojtek Figat
20c32ea6ed
Impl progress on c++ name mangling on Clang for proper P/Invokes binding
2023-01-24 17:31:09 +01:00
Wojtek Figat
e818d37dd6
Add separated bindings method impl for scripting evnts binding on Clang
2023-01-24 16:55:06 +01:00
Wojciech Figat
048a4ac1e3
Use separated internal managed binding method declaration and implementation on Clang to properly export symbol for P/Invoke
2023-01-24 14:00: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
25811ed6d4
Optimize bindings code generation via String Builder pooling
2023-01-23 13:22:43 +01:00
Wojciech Figat
daa92db25c
Add support for using managed method thunks on dotnet7 in all cases
2023-01-12 15:14:43 +01:00
Wojciech Figat
6ef5c76e1a
Fix regression from recent scripting fixes/features on 1.5
2023-01-10 16:13:53 +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
ca2e2e1f41
Fix native scripting interface method override in managed scripts on Clang-platforms
2023-01-10 11:45:23 +01:00
Wojtek Figat
17f9219cd0
Add TargetCompiler to Flax.Build toolchains
2023-01-10 11:45:23 +01:00
Wojtek Figat
c53af39c92
Merge remote-tracking branch 'origin/1.5' into dotnet7
2023-01-08 15:05:56 +01:00
Wojtek Figat
58844622a0
Simplify managed method invoke generation for AOT vs JIT platforms
2023-01-08 13:50:45 +01:00
Wojtek Figat
cfcf29a62e
Fixes for passing new unit tests with edge cases of scripting bindigns usage
2023-01-08 00:34:33 +01:00
Wojtek Figat
4012434102
Fix test
2023-01-03 23:04:09 +01:00
Wojciech Figat
e596d48729
Merge remote-tracking branch 'origin/1.5' into dotnet7
2023-01-03 14:34:20 +01:00
Wojciech Figat
ceacdc8d08
Fixes for dotnet7 bindings to pass unit tests
2023-01-03 14:34:16 +01:00
Wojtek Figat
b4faa128b7
Fix case when Variant wrappers overlap with the name
2023-01-02 22:04:14 +01:00
Wojciech Figat
d3cdca6b33
Merge remote-tracking branch 'origin/1.5' into dotnet7
2023-01-02 10:37:04 +01:00
Wojtek Figat
081305fab7
Fix regression from 0ca8fe2f45 for value types
2022-12-31 13:23:36 +01:00
Wojtek Figat
0ca8fe2f45
Fix passing reference types back to the native code from scripting event
2022-12-31 00:22:04 +01:00
Wojciech Figat
af7b53814d
Merge remote-tracking branch 'origin/1.5' into dotnet7
...
# Conflicts:
# Content/Shaders/GI/DDGI.flax
# Content/Shaders/TAA.flax
2022-12-30 09:24:10 +01:00
Wojtek Figat
e2e66e0eec
Fix crash when unboxing integer value type from managed callback via generated bindings
2022-12-30 00:08:32 +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
53de6d018b
Return container types as return parameters
2022-12-27 19:02:40 +02:00
Wojciech Figat
7440cb0963
Rename generated method parameters in bindings to prevent name collisions
2022-12-24 15:35:46 +01:00
0d68e90b59
Fix array count output parameter handling when returning arrays
2022-11-27 14:42:11 +02:00