Skip to main content

All Questions

1 vote
1 answer
30 views

GameObjects fall downwards in Unity when they should MoveTowards spaceship

I'm making my first C# game/program with Unity. Basically, the meteoroids should move towards the spaceship but they lose velocity and start falling downwards. The code below worked before I added the ...
Harley's user avatar
  • 1,494
1 vote
0 answers
33 views

Mono Default Assembly Path Is Wrong C++

I am trying to load assemblies from a mono game using mono_domain_assembly_open however I have to set the full path to the assembly in order for it to load which is causing considerable lag when ...
Exam Expert's user avatar
0 votes
0 answers
39 views

Why does Unity give not detect enemies and run the TakeDamage() function after running the OverLapCircle() function? (UNITY 2D)

Here is the enemy health script with the TakeDamage() function // Import the necessary Unity libraries. using System.Collections; using System.Collections.Generic; using UnityEngine; // Define a ...
CreatoMan's user avatar
0 votes
0 answers
147 views

How to use mono_add_internal_call properly if C++ project and C# dll are under different directory

I have a C++ project which want to invoke function in C# dll, therefore I followed the mono-document, and have below code in C++ project: static MonoString* Sample() { return mono_string_new(...
LoneliNerd's user avatar
0 votes
1 answer
312 views

How can I import a ttf file as Font in Unity at runtime?

I'm working in a project and I need to load font, cuz these fonts can be customizable I'm trying methods like just Font class ctor, trying using TMPro but I can't find some info about that and looks ...
Tiziano Kraft's user avatar
0 votes
0 answers
84 views

Specify to use native .Net class and not Mono's implementation in Unity

When working on a Unity IL2CPP .Net Framework project, is it possible to force the application to use the native .Net 4.8 version of a specific class instead of the Mono implementation? I don't ...
Reahreic's user avatar
  • 607
1 vote
1 answer
190 views

Unity: the null-coalescing operators not working [duplicate]

Problem I cannot use ?? and ??= operators in Unity. public class Compo : MonoBehaviour { [SerializeField] Transform? _tr; void Start() { _tr ??= transform; Debug.Log(_tr); ...
hotari's user avatar
  • 83
0 votes
1 answer
218 views

Unity: Native Plugin is not found in standalone build on other computers

I have compiled and imported the GameNetworkingSockets library into the unity Plugins folder. When doing a standalone build on my pc and running it, everything works fine, but when running the build ...
THE YAAAAA's user avatar
0 votes
1 answer
213 views

How to test Obfuscated app which runs via Unity

As its known Mono is an fork of .NET Framework but with nuances, such as some things could be not implemented or not working in some versions of Mono, probably everywhere idk (eg Environment.FailFast),...
sunnamed's user avatar
  • 203
0 votes
2 answers
2k views

How to build Visual Studio .csproj as Mono?

I`m using Visual Studio 2022. The goal Run Console application (.NET Framework) - on Mono (without Unity or other tools). Console Application code: internal class Program { private static Task ...
sunnamed's user avatar
  • 203
0 votes
1 answer
129 views

Calling managed function inside CommandBuffer hang domain reload

I'am trying to call managed function inside CommandBuffer via IssuePluginEventAndData. It accepts (void* function pointer, int eventId, void *data). Here's the function: [UnmanagedFunctionPointer(...
Alex's user avatar
  • 536
5 votes
2 answers
7k views

OmniSharp requires a complete install of Mono (including MSBuild)

OS: Ubuntu 22.04.1 LTS OS Type: 64-bit GNOME Version: 42.4 Unity Editor Version: 2021.3.13f1 Error: OmniSharp requires a complete install of Mono (including MSBuild) to provide languages services ...
Salah Rashad's user avatar
1 vote
0 answers
341 views

Backwards compatible replacement for C# 8.0's async streams

I hope the question title does not become imprecise, but it may happen that a direct replacement isn't available and a code restructuring becomes inevitable. My task is to stream audio frames from ...
MeFisto94's user avatar
  • 157
1 vote
1 answer
1k views

How to configure intellisense on vscode with unity and linux?

I recently switched to Linux and I have problems with Unity and VSCode. When I open any of my scripts, classes like MonoBehaviour don't exist... I found that you should change Omnisharp: Use Global ...
RORAK's user avatar
  • 26
0 votes
0 answers
84 views

Marshalling Conventions C++ vs C#/Mono

I have the following C++ API #ifndef AGUR_H #define AGUR_H #define AGUR_EXPORT __attribute__((visibility("default"))) #include <cstdint> extern "C" { AGUR_EXPORT void ...
CipherShark's user avatar

15 30 50 per page
1
2 3 4 5
21