Commit Graph

169 Commits

Author SHA1 Message Date
22132d550c _assetref setunsafe (unstable buggy) 2024-05-01 18:53:14 +03:00
Wojtek Figat
6b35c0a161 Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Flax.flaxproj
2024-03-19 20:23:34 +01:00
ed21876bb8 Fix duplicate generation of native variant conversion helpers 2024-03-18 17:34:49 +02:00
Wojtek Figat
161773a8be Fix serialization bug when compiling with Clang 2024-02-29 01:41:53 +01:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
c7a449fe1c Fix marshaling custom type array to C# with MarshalAs used 2024-02-15 18:28:51 +01:00
Wojtek Figat
43f344ee13 Simplify bindings code for object refs 2024-02-15 10:54:33 +01:00
Wojtek Figat
f730657518 Add support for using pointer in MarshalAs in scripting types 2024-02-15 10:47:45 +01:00
Wojtek Figat
b2621ff799 Codestyle fix for #2214 2024-02-06 11:13:00 +01:00
Wojtek Figat
756a991c2c Merge branch 'BugFixes' of https://github.com/NoriteSC/FlaxEngineFork into NoriteSC-BugFixes 2024-02-06 11:10:30 +01:00
NoriteSC
af8e1e527f Update BindingsGenerator.Cpp.cs 2024-01-29 15:33:14 +01:00
z1dev
ee19bca7e4 Fixing skipped static and other fields generating "else if" without "if" first. 2024-01-26 09:07:02 +01:00
Wojtek Figat
d3a77c7a55 Fix regressions 2023-11-28 17:38:06 +01:00
Wojtek Figat
17dca8c5c7 Fix invalid codegen for array reference passed as output parameter in scripting interface method 2023-11-28 11:21:29 +01:00
Wojtek Figat
8ffc86ef88 Fix missing output parameters conversion when calling interface implementation in scripting
#1992
2023-11-28 11:20:07 +01:00
Wojtek Figat
d99a92fd13 Fix generic types including to be recursive in C++ bindings codegen
#1966
2023-11-23 13:46:43 +01:00
Wojtek Figat
6fd34bf5cc Fix compilation regression 2023-11-14 12:15:51 +01:00
Wojtek Figat
d9b0e99b9c Add support for using Revision number in projects version 2023-10-26 15:20:35 +02:00
Wojtek Figat
7cc6163a38 Restore C# method caching in Editor 1d7ba2210a 2023-09-28 12:09:56 +02:00
Wojtek Figat
1c20398d8c Merge remote-tracking branch 'origin/master' into 1.7 2023-09-22 22:43:29 +02:00
Wojtek Figat
abcfc8af35 Add using exact C# method profiler data for profiler events in overriden thunk method callbacks 2023-09-22 12:04:41 +02:00
Wojtek Figat
81a2898d4e Add double-reference support for scripting function parameters to move value 2023-08-28 14:19:02 +02:00
Wojtek Figat
de6254b5a5 Various fixes for scripting bindings codegen 2023-08-19 17:00:05 +02:00
Wojtek Figat
e36bf6e19a Add MarshalAs tag to APi structs/classes for custom marshaling via implicit casting 2023-08-19 16:59:39 +02:00
Wojtek Figat
32c47949fa Fix error when scripting structure uses StringAnsi field 2023-08-18 13:32:06 +02:00
Wojtek Figat
1948a84301 Add crash to soft-return if managed event bind target object native instance is gone
#1278
2023-08-14 18:40:03 +02:00
Wojtek Figat
04c1cf469d Fix codegen for C++ RPS with Array ParameterDefinition
#1209
2023-06-28 20:08:35 +02:00
Wojtek Figat
b0134ab1ce Fix missing MConverter codegen for array and generic types used in non-POD struct fields 2023-06-13 16:38:08 +02:00
Wojtek Figat
6b8d8b7913 Various fixes and improvements to auto-generated bindings usability 2023-06-12 14:35:11 +02:00
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