Category "unity3d"

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

How can I make it so when my player collides with an enemy, it disables movement input until player touches the ground?

So, I want to make it so the player loses control when it collides with an enemy. I already got a thing set up to make the player fly off towards the direction

Top-down motion with Unity causing errors

I am a first time programmer watching a tutorial on making a 2d, top-down game. My goal for this specific section of code is just to make the player walk around

Unity's Universal Render Pipeline performance problem? (2D)

I never got real answer for this. I open this new empty project (total blank but with one GameObject) I ended up getting 2500FPS, alright? Makes sense. The mom

Game works fine in editor, not in build

I am working on a game and i have a script to save the stats for characters. The same script is used for hero and for the enemies. There are actually 2 scripts

Is there a way to Marshal a byte[] into a string without copying in C#?

I am in the process of building a sub-part of a native application, namely a Unity application that runs as a child of a different application written in a comp

Unity ads in flutter via admob mediation

In my flutter app , admob ads are already showing , I want to show unity ads via admob mediation. How to setup unity ads in flutter app via admob mediation?

Issues with playfab leaderboard

Im having issues with PlayFab, What im trying to do is have the wave number recorded and sent off to the leaderboard when the game is over but I dont know how t

Trying to setup HttpListener causes an exception, any ideas?

I'm trying to set up a HttpListener for a Server Manager for my Multiplayer Unity Game but I am getting an exception when executing the following code: using Sy

How to improve unity management on android? unity2D

please tell me how to make the player control was not tied to the finger, but for example to drive in any part of the screen and the player will move from the p