Commit Graph

185 Commits

Author SHA1 Message Date
7048281931 Hide AbstractWrappers in Editor 2023-01-09 15:20:24 +02: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
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
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
28da925c52 Fix DisableRuntimeMarshalling attribute usage to be declared once per C# assembly 2022-12-29 14:11:22 +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
96dc279ebd Implement .NET 7 runtime support and bindings generation 2022-11-26 14:37:07 +02:00
Wojciech Figat
043beb03a9 Add support for DataContainer in scripting api bindings 2022-11-03 08:53:07 +01:00
Wojciech Figat
52e0e70908 Add support for different access level for scripting property functions 2022-10-27 15:14:34 +02:00
Wojciech Figat
b3eb38009d Improve various types usage in scripting api 2022-10-26 14:58:46 +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
Wojtek Figat
fe1cab6a7f Add Default auto-generated member to scripting structures and improve deserialization 2022-08-01 18:49:54 +02:00
Wojtek Figat
2bd3c0f74f Add support for constexpr fields in Scripting API 2022-06-16 21:56:48 +02:00
Wojciech Figat
c6e909c867 Refactor API_INJECT_CPP_CODE into API_INJECT_CODE to support code injection in other languages 2022-06-14 11:53:31 +02:00
Wojtek Figat
a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
Wojtek Figat
c87f2f5b56 Optimize empty comments parsing in Scripting API 2022-05-23 19:57:07 +02:00
Wojtek Figat
b70bce1746 Add support for generic types in Scripting API with Template flag 2022-05-23 19:43:34 +02:00
Wojtek Figat
4a9c746bed Add SoftAssetReference type 2022-02-28 23:15:35 +01:00
Wojtek Figat
56491569df Optimize C# bindings in Engine code to static functions that native ABI matches managed signature 2022-02-19 00:29:09 +01:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
Wojciech Figat
c72be46228 Remove automatic tooltips genration for CSharp scripting API (xml docs are used now in Editor) 2021-12-22 15:03:04 +01:00
Wojciech Figat
e778fe8342 Fix passing pointers as output pointer or reference in scripting api 2021-12-21 18:14:56 +01:00
Wojciech Figat
e9557352a0 Update copyright year in some source files 2021-12-08 09:44:10 +01:00
Wojciech Figat
23303802ec Add support for passing back value via reference to C# scripting event 2021-12-06 16:46:16 +01:00
Wojciech Figat
f4b62ce384 Add support for array initializers as default values for scripting fields 2021-12-06 16:45:03 +01:00
Wojciech Figat
3648f8bef2 Add Hidden attribute to scripting fields/properties/methods/events 2021-11-15 16:39:13 +01:00
Wojtek Figat
a37103af4a Fix regression from 5bd3032f78 2021-11-05 12:38:29 +01:00
Wojtek Figat
5bd3032f78 Add support for passing the object reference as scripting function output result 2021-11-05 11:46:40 +01:00
Wojtek Figat
67f0056121 Fix generated DefaultValue attribute to match the field value type 2021-11-03 19:25:44 +01:00
Wojtek Figat
8bdf417b17 Fix using object reference in Scripting API with PersistentScriptingObject 2021-10-18 11:02:37 +02:00
Wojtek Figat
05ebf60dba Add PRAGMA_DISABLE_DEPRECATION_WARNINGS and PRAGMA_ENABLE_DEPRECATION_WARNINGS macros 2021-10-14 11:07:12 +02:00
Wojtek Figat
4e6fa25877 Add support for using DEPRECATED to mark scripting API as obsolete 2021-10-12 23:48:47 +02:00
Wojtek Figat
c3c0a4ef0d Add support for interfaces in scripting API (cross language support C++/C#/VS) 2021-10-04 12:26:08 +02:00
Wojtek Figat
d65a85e30c Add check to prevent double-free from native event in C# 2021-08-11 19:28:53 +02:00