Skip to main content

All Questions

1 vote
1 answer
33 views

Camera y Axle dont rotating

using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed = 10.0f; public float gravity = -9.81f; ...
ertoletik's user avatar
1 vote
1 answer
540 views

Unity.Properties.SourceGenerator.PropertyBagGenerator cannot be created? Error

Opening a Unity project in Visual Studio 2022 yields the following error: CS8032: An instance of analyzer Unity.Properties.SourceGenerator.PropertyBagGenerator cannot be created from x:\x\x\2022.3....
 Lewis's user avatar
  • 11
0 votes
1 answer
48 views

How to fix the error IHttpClientFactory not exist when using open ai in unity3d?

the error is at line number 38 on the last line in this part of code: public IHttpClientFactory HttpClientFactory { get; set; } the full part: using OpenAI_API.Audio; using OpenAI_API.Chat; using ...
Daniel Lip's user avatar
  • 11.2k
3 votes
1 answer
234 views

Is there any way to Check that a GLB file is a valid or a corrupted file in c#?

I want to check that a GLB file is a valid GLB file or a corrupted File before doing any process on that GLB file. I tried to load the file using the below code, but some valid GLB file I have which ...
ROHIT NIKHARE's user avatar
0 votes
0 answers
34 views

MarshalDirectiveException in Unity when marshalling int[] to SafeArray

Marshalling int[] to SafeArray seems to behave differently in Unity and in a standalone .NET application. I have a COM dll that defines an interface [ComImport] public interface Calibration { [...
Jialiang Lu's user avatar
1 vote
0 answers
168 views

How to implement a C# callback compatible with a C++ DLL's variadic function pointer for Unity

I am working with a C++ dynamic link library from xatlas that exports a function with the following signature: __declspec(dllexport) void xatlasSetPrint(xatlasPrintFunc print, bool verbose);. The ...
Velctor's user avatar
  • 31
0 votes
0 answers
40 views

Microsoft Sharepoint CSOM error - Default constructor not found for type Microsoft.SharePoint.Client.ContentTypeId

Looking for advice if I have missed something obvious here please. I suspect it is related to reference assemblies. I use Unity 3D for an Android App that communicates with SharePoint Online. After ...
Ian Latham's user avatar
0 votes
2 answers
192 views

How to make a unity game easily-moddable? [duplicate]

I've seen many unity games get modded, but usually using external tools like thunderstore and whatnot. Here is how I want my mod system to work: When my game opens, it reads a file from Appdata/...
GoogleCoder's user avatar
0 votes
1 answer
42 views

Netcode how to call methods from client to client

I have a code that lays out this damage dealing if (health.statusStorage.ClientStatus()) // if client { health.GetDamageServerRpc(damage, new ...
MaXanter2017's user avatar
-1 votes
1 answer
171 views

Get note's start and end events from MIDI file with DryWetMidi unity package

I'm developing my first rhythm game in unity, and I have track and track's midi. I want to use the drum's midi (or possibly custom midi) as events raiser for note start and note end synchronized with ...
SAVELIQ's user avatar
0 votes
0 answers
57 views

Omnisharp error in C# VSCode "It was not possible to find any installed .NET Core SDKs"

I have a macbook and correctly installed .net and mono. I am using c# for Unity and I get this error in the OmniSharp Log: "[STDERR] It was not possible to find any installed .NET Core SDKs ...
Moris Moysis's user avatar
0 votes
1 answer
604 views

How to stop async function in c# unity?

One more question. I found a cancellationToken in the unit that makes a cancellationRequest when leaving the playmod. I implemented it in my fade in/out system, which has: smoothly change the ...
hea7en's user avatar
  • 19
0 votes
0 answers
103 views

Unity how to Include an executable to be launch from build

I have a basic .net console app that needs to be launched at runtime from by Unity app. To achieve this, I have the executable in my StreamingAssets folder along with all of its dependencies. ...
Nick Hudson's user avatar
0 votes
3 answers
517 views

Is there a way to use Roslyn in Unity?

So, I have this project we will call X. X is a console application developed in .NET Core 3.1 and I want to give this application an interface with Unity. A core part of this application is the ...
MrBott_a's user avatar
0 votes
1 answer
67 views

In Unity, how to copy state of a GameObject to anther without allocating memory?

I enconterd some problem when try to implent ObjectPool, please attention RefreshData method at bottom of the code block: //Unity version 2022.3 using UnityEngine; using UnityEngine.Pool; public ...
Velctor's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
30