Commit Graph

195 Commits

Author SHA1 Message Date
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
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
Wojciech Figat
9acb597d5d Adjust scripting types visibility in editor 2023-01-02 10:36:24 +01:00
Wojciech Figat
00d960d61e Refactor abstract classes handling for scripting types creation (eg. Script or GPUResource) under dotnet7 2023-01-02 10:35:39 +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
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
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
Wojciech Figat
28da925c52 Fix DisableRuntimeMarshalling attribute usage to be declared once per C# assembly 2022-12-29 14:11:22 +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
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
d9042b3db2 Fix building various plugin projects with new dotnet7 2022-12-27 13:49:47 +01:00
Wojciech Figat
7440cb0963 Rename generated method parameters in bindings to prevent name collisions 2022-12-24 15:35:46 +01:00
48214f925b Fix wrong import name in generated plugin bindings 2022-12-24 01:13:56 +02:00
80c3056daf Fix errors when compiling plugins 2022-12-23 22:33:22 +02:00
22b4e25c02 Improve array allocations when marshalling method parameters 2022-12-22 19:54:58 +02:00
Wojciech Figat
75130fcca3 Fix using Function in scripting api to pass function pointer to native code when running in dotnet7 2022-12-22 11:50:29 +01:00
c8cc899128 Optimize allocations in method parameter marshalling and invocation 2022-12-21 00:40:38 +02:00
55747edaae Cleanup 2022-12-21 00:40:38 +02:00
fcd1366d26 Fix memory leaks caused by unreleased GCHandles 2022-12-02 00:06:32 +02:00
676d87129c Fix array count output parameter handling when returning arrays 2022-11-28 00:07:02 +02:00
4a1c1ebe3a Fix ScriptingObject handles getting released during marshalling 2022-11-27 23:53:30 +02:00
0d68e90b59 Fix array count output parameter handling when returning arrays 2022-11-27 14:42:11 +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
2644b4d75a Various improvements to the networking 2022-11-23 17:26:30 +01:00
Wojciech Figat
043beb03a9 Add support for DataContainer in scripting api bindings 2022-11-03 08:53:07 +01:00
Wojtek Figat
949f16fba8 Fix returning bool value in overriden scripting method 2022-11-02 20:30:40 +01:00
Wojciech Figat
e8d39e706f Add C++ properties replication support 2022-10-27 16:21:53 +02:00
Wojciech Figat
52e0e70908 Add support for different access level for scripting property functions 2022-10-27 15:14:34 +02:00
Wojciech Figat
3ede538fcb Add support for non-const ref parameters with conversion (eg. string or array) in scripting api function parameters 2022-10-26 15:59:34 +02:00
Wojciech Figat
19f1c4251c Fix scripting api bindings for types with changed scripting name (other than native type name) 2022-10-26 15:00:29 +02:00
Wojciech Figat
d90245bf32 Add Tag parsing in scripting type (for custom extensions) 2022-10-26 14:59:50 +02:00
Wojciech Figat
b3eb38009d Improve various types usage in scripting api 2022-10-26 14:58:46 +02:00
Wojciech Figat
3f1dba86a3 Fix parsing scripting function parameters with function parameter within default parameter value 2022-10-26 14:58:05 +02:00
Wojciech Figat
e115aa2c4e Merge remote-tracking branch 'origin/master' into 1.5
# Conflicts:
#	Source/Engine/Content/JsonAsset.cpp
2022-10-19 13:36:46 +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
Wojtek Figat
3c9d9cd8d6 Add support for deserialization of deprecated properties in scripting types 2022-10-12 20:39:40 +02:00
Wojciech Figat
09b35266f7 Add automatic network serializers generation for NetworkReplicated fields in C++ types 2022-10-12 11:22:53 +02:00
Wojciech Figat
09e50bb0e1 Simplify code in bindings generator 2022-10-11 11:38:35 +02:00