Category "unity3d"

C# Process.Start() not starting despite file existing and setting working directory

Question update I'm trying to use a C# script in Unity to call a python program. After following these two links: How do I run a Python script from C#? Proc

Player animation doesn't want to stop

Currently working on a mobile game where i need to move the character with a virtual joystick ,i used a code from a tutorial i saw on the internet, the problem

terrain lighting issue Unity

I'm getting some weird effect on my terrain on iOS devices. In editor, it looks fine; on device it shows the light like the image below. The textures on the ter

I'm having a problem with the OnCollisionEnter function in C# while making a game in Unity

So I learned that you can use a function called OnCollisionEnter to do different things on gameObjects collisions. I tried something simple : using UnityEngine

Jumping problems. (new coder please be nice)

I was following a tutorial about the basics of making games in Unity. Link to person :https://www.tiktok.com/@individualkex. I came across an issue, when I put

async Task is being executed immediately instead of asynchronously

I have a Task that should execute asynchronously that is executing synchronously. I'm not entirely sure why it's happening, and it seems to follow the example f

Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2

I have tested one user on Windows and the other on Android Device. I went away from my computer for making sure that my Laptop does not receive any audio. When

Why Unity shader is pink in editor game mode, but is correct in editor scene mode?

I am using Universal Render Pipeline, I built a shader which apparently works good. here is the image showing the result, please note that I am in the scene tab

How do I use different Post-Processing effects on different cameras in Unity 2017.4.2f2?

Before I explain my situation, it's important that I mention I'm using an older version of Unity, 2017.42f2 (for PSVITA support). for this reason, I'm also usin

ScrollRect does not correctly update the position when clamping the normalized position, after removing/deactivating a child element from the content

This is an issue that I had to resolve myself after finding no solutions for it. The issue was that after removing a GameObject element from the ScrollRect's c

NetworkServer is not active. Cannot spawn objects without an active server in Unity 3D

I am trying to implement a multiplayer feature in Unity3d. Its like a snake game, snake eats food and generate its part. I can successfully generate food and pa

How to cut a mesh by plane in Unity3d

I want to cut meshes by plane. try this code, but get only one of parts of cutting mesh. Screenshot 1 Screenshot 2 public void SliceIt() { Vector3[] vertice

How to get Direction after cueBall collide with any ball in unity3d? Like in 8 ball pool

Hi! i am making something like 8 ball pool in 3d with unity 3d C#. A is que ball and I know Dir1. I want to calculate Dir2.I am using Raycast to i can get poin

Unity Editor - stuck at building native binary with IL2CPP

I have an Unity project and planning to embed it in Android studio as a library. I followed https://medium.com/@davidbeloosesky/embedded-unity-within-android-ap

Why the sound effect does not work in unity

Why the sound effect does not work in unity? when I try to add a sound effect, it doesn't work This is my script to move to the next scene using buttons: us

Why the sound effect does not work in unity

Why the sound effect does not work in unity? when I try to add a sound effect, it doesn't work This is my script to move to the next scene using buttons: us

Unity Can I use yield return new WaitUntil(() => GameObject.Find("xx")) in IEnumerator Start()?

I want to stop the Code in my Script until it finds a GameObject and then continue. I tried it in my Start Method with the following Code : yield return new

How to limit angles in (-180,180) range just like Unity3D inspector

I want to get rotation of Camera gameobject attached to Char gameobject EDIT: Char rotation, pos, scale is 0,0,0 I have following code: (Script is on the Ch

How do I get a Unity Scroll Rect to scroll to the bottom after the content's Rect Transform is updated by a Content Size Fitter?

I have a vertical scroll view that I want to add content to dynamically. In order to do this I've attached a Content Size Fitter component and a Vertical Layout

How to scale a Bezier Curves t value while keeping its initial and final derivatives the same?

there are a lot of answers for scaling a bezier curve's position, but i want to scale its t value. I have found a solution for this, but the problem is once i s