Category "unity3d"

How to fix Unity Hub's "could not be opened. Please check the logs." error

Whenever I create a new project, I can't seem to open it. It displays "My Project could not be opened. Please check the Logs". Whenever I try to open the Unity

Generally what would cause Unity Editor freezes and not responding?

I have encountered a critical issue that Unity Editor freezes. I've spent many hours debugging step by step of my codes but still can't find where the problem i

NodeMCU Unity Connection, using UDP

I am trying to connect NodeMCU with unity for my university project. My nodemcu receives data (tested with a UDP test tool application). I will leave the code b

OpenXR FOV in Unity Editor too small for Hololens 2

I have a problem after switching from Unity integrated XR to Open XR when using Holoremoting. The Unity Editor FOV 29 deg, although the Hololens 2 FOV is 54 deg

WaveSpawner in Unity

i have a wave spawner script from a video i saw, since I'm fairly new to this still and its just more so a learning experience than anything really, but when sp

unity-photon- how can get other player's companent

I'm making a multiplayer game. I want to make a system. When a "x" player play a game and there is a "y" player. "x" player should see "y" player's score on "y"

Can't exit function properly

I have a C# unity function and I'm trying to request some json from a webserver but for some reason its not exiting the function where I want it to: using Syste

Pick a section of an image in c#

I have an image with multiple portraits inside, how can I pick each one of them without cutting the image in photoshop or something like that. The image would b

Unity CS1001: Identifier expected but all syntax is right?

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class QuizManager : MonoBehaviour { public List

Is there a way to import a texture in a specific format?

I'm trying to load a rendered image from Blender into Unity. But I saved the image with a color depth of 16 bits per channel, and now I want to have the same ac

Is it possible to detect what type of Default Asset is selected in Unity?

i'm trying to make a custom editor and i was wondering if there's any way to detect what exact type is an asset when GetType() returns UnityEditor.DefaultAsset.

Unity Firebase on IOS lFirebaseCore is not found error

i am importing my unity project to xcode to compile. I imported Firebase SDK in unity and exported for ios. But on build i am getting the following error. ld: l

AppData locations in Unity

How do I get locations for "Local" and "Roaming" inside "AppData" folder through Unity? I am able to get "LocalLow" directory using the code below, how do I get

How to freeze rotation in the z & y axes directions? Unity3D

I have a platform that can swing on a wide cylinder if objects are unevenly distributed on it. To do this, I created a cylinder with a mesh collider, put a plat

How to set delay OnStepcomplete with dotween Unity?

I want to set a delay after every dotween loop. Onstepcomplete method doesn't seem to work with Ienumorator and SetDelay method delay at the start of the Tween.

C#, Byte array to System.Drawing.Image error

I am trying to convert some video playback code from Unity to C# WPF, and I have hit a wall with the conversion. I have my video frame as a private byte[] _text

Error: Assets/beandefine.cs(23,1) (sorry Dani) Type or namespace definition, or end of file expected

I get this error so much! It is not the filename though, because it is beandefine.cs (I want to define a GameObject) Here is the code: using System.Collections.

How to jump properly using character controller?

I'm using a character controller for my player movement. I had walking and running working, but I couldn't get the jumping to work. Here is my code: [SerializeF

firebase is not being recognized in Unity webGL Build

I have set up a test project in order to test Firebase with unity webGL builds. I have created a *.jslib plugin to keep my js functions in there : mergeInto(Lib

Shoot raycast on reflect direction

I'm creating a pool game. And I want to shoot Raycast on the reflect direction so I can draw LineRenderer on it. Main Cue Ball Script: using System.Collect