Wojtek Figat
7bcf78d0c0
Fix various crashes
2023-12-17 12:38:09 +01:00
Wojtek Figat
9738fd4354
Fix crash on hot-reload in Editor due to leftover scripting events in ScriptingEvents::EventsTable
...
#1925
2023-11-16 14:09:05 +01:00
Wojtek Figat
97a28d4431
Add security lockers for managed typeinfo access
2023-11-13 15:48:12 +01:00
Wojtek Figat
f44421b7a7
Optimize managed method invoke on NetCore to skip virtual call that is the same as default one
2023-10-26 11:25:30 +02:00
Wojtek Figat
dd21020297
Merge remote-tracking branch 'origin/master' into 1.7
2023-10-01 13:17:41 +02:00
Wojtek Figat
d10d52ec0c
Add thread-safety to various scripting methods
2023-10-01 10:57:51 +02:00
1d42988f39
Fix VisualScript method calls not working with value types
2023-09-29 00:50:19 +03:00
Wojtek Figat
a71de7357c
Merge remote-tracking branch 'origin/master' into 1.7
2023-09-19 21:42:53 +02:00
Wojtek Figat
79bf226fe1
Codestyle fix
2023-09-18 12:11:28 +02:00
Andrew Spiering
3ac00b1e4e
Fixing a crash when generic classes spanned across different assemblies
...
This code attempts to resolve an issue where if you had a class in Assembly A and it was generic and you had a class that inherited from it in Assembly B it would not properly resolve these classes, also added an error check for if I was not able to find the TypeIndex then log it and return thus also preventing a crash when it goes to resolve the NativeType
2023-09-17 20:37:37 -07:00
Wojtek Figat
3498806588
Add support for accessing scripting properties via ManagedBinaryModule fields API
2023-08-19 17:45:42 +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
c838a800b6
Add error logging for module initializers
2023-03-05 19:32:23 +02:00
Wojtek Figat
ac59cc4633
Merge remote-tracking branch 'origin/master' into dotnet7
2023-02-13 10:05:51 +01:00
Wojtek Figat
c785a17ca8
Fix crash on exit due to remaining DefautlInstance objects
2023-02-10 11:27:01 +01:00
Wojtek Figat
0270772463
Merge remote-tracking branch 'origin/master' into dotnet7
2023-02-06 10:02:13 +01:00
Wojtek Figat
87549a3e6c
Fix sort order usage in multi-pass drawing of the Mesh
2023-01-28 01:31:07 +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
96dc279ebd
Implement .NET 7 runtime support and bindings generation
2022-11-26 14:37:07 +02:00
Wojtek Figat
00be6ffb89
Merge branch 'master' into 1.5
2022-10-29 20:45:51 +02:00
Wojtek Figat
6379171fa6
Fix crash due to bdb69d57dd (Mono typenames are invalid after dll unloaded)
2022-10-29 18:56:21 +02:00
Wojciech Figat
77f8df02e5
Add ModuleInitializer attribute for C# scripting initialization code running on load
2022-10-12 17:00:40 +02:00
Wojtek Figat
bdb69d57dd
Refactor Plugins system to support plugins in C++ scripts
2022-07-28 21:05:03 +02:00
Wojtek Figat
b815ba51a5
Fix build issues
2022-06-13 23:37:11 +02:00
Wojtek Figat
a881c90b2e
Refactor engine to support double-precision vectors
2022-06-13 00:40:32 +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
Wojciech Figat
8c2241c6dc
Update copyright year
2022-01-14 13:31:12 +01:00
Wojciech Figat
31bbd586db
Add scripting enums as ScriptingType
2021-11-19 16:43:02 +01:00
Wojtek Figat
f87544bbaf
Add ScriptingTypeHandle::IsSubclassOf
2021-10-23 16:43:17 +02:00
Wojtek Figat
8938f13a0b
Add support for compiling and running engine without C# scripting
...
(configurable via `EngineConfiguration.UseCSharp` in Flax.Build)
2021-10-23 16:43:15 +02:00
Wojtek Figat
45e3da3f90
Fix compilation issues
2021-10-08 17:03:11 +02:00
Wojtek Figat
e92c22585a
Add support for using interfaces in Visual Scripting
2021-10-04 12:26:35 +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
ba8f7c5ab4
Add improvements for native interfaces usage
2021-09-29 16:33:25 +02:00
Wojtek Figat
e2cd0393ac
Add ManagedBinaryModule::FindModule utility for C# type class lookup
2021-09-29 15:46:17 +02:00
Wojtek Figat
8d512eb1d3
Add ScriptingTypeHandle::IsAssignableFrom
2021-09-23 13:46:47 +02:00
Wojtek Figat
847641f655
Fix crash when spawning C# object that inherits from abstract C++ class
2021-08-08 19:10:51 +02:00
Wojtek Figat
9f9e5b49cc
Add more profile events
2021-07-06 16:17:11 +02:00
Wojtek Figat
05f919c50f
Optimization and tweaks
2021-05-02 11:25:33 +02:00
Wojtek Figat
0e75dba142
Optimize C++ compilation time
2021-04-30 16:27:57 +02:00
Wojtek Figat
b193a7abc4
Add support for binary modules with native-code only
2021-02-25 13:01:15 +01:00
Wojtek Figat
6fd1580d67
Fix building on linux after merge
2021-02-16 19:01:00 +01:00
Wojtek Figat
efea842486
Fix warning
2021-02-01 16:23:57 +01:00
Wojtek Figat
cbbfb16628
Add scripting API events in Visual Script
2021-01-22 10:55:13 +01:00
Wojtek Figat
cc8e78b505
Merge remote-tracking branch 'origin/master' into navigation-features
...
# Conflicts:
# Source/Editor/Content/Settings/NavigationSettings.cs
# Source/Engine/Engine/PhysicalMaterial.cs
# Source/Tools/Flax.Build/Bindings/BindingsGenerator.Api.cs
2021-01-04 14:31:56 +01:00
Wojtek Figat
8dc5b11f51
Add API_INTERFACE to scripting API bindings for implementing interfaces
2021-01-04 14:18:59 +01:00