-
How would I be able to use a class defined in C# from my F# scripts? My C# scripts are defined in their own assembly via Unity's Assembly definition system. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Jvp2001, thanks for the question. Right now, the generated F# project references exactly the same assemblies as Unity's |
Beta Was this translation helpful? Give feedback.
Hey @Jvp2001, thanks for the question.
Right now, the generated F# project references exactly the same assemblies as Unity's
Assembly-CSharp
does, so if your asmdef is marked as "Auto Referenced" it should just work. I don't think there's any way right now to reference assemblies not marked as "Auto Referenced", if that's what you are asking for. I mean, you could add them manually to the fsproj file, but a regeneration of it would remove such manual changes.