Quantcast
Channel: Questions in topic: "error message"
Browsing all 2891 articles
Browse latest View live
↧

I'm trying to make a script for multiple hixboxes and if it has collision,...

using System.Collections; using System.Collections.Generic; using UnityEngine; public class txtScript : MonoBehaviour { public GameObject text1; public GameObject text2; public GameObject text3; public...

View Article


Gun will not shoot, shows error.

i made a gun script. that shows error: NullReferenceException: Object reference not set to an instance of an object gun.Shoot () (at Assets/code/gun.cs:132)<---- see script 1 (see void Shoot for...

View Article


Are there any cases in that unity ignores the exception and runs the next code?

Hi, there. I have a question about unity error/exception that sometimes ignores. void Awake() { /* * do something... */ // Set title text titleObject.SetTitle("..."); } My code is just like this....

View Article

Are there any cases in that unity ignores the exception and runs the next code?

Hi, there. I have a question about unity error/exception that sometimes ignores. void Awake() { /* * do something... */ // Set title text titleObject.SetTitle("..."); } My code is just like this....

View Article

Are there any cases in that unity ignores the exception and runs the next code?

Hi, there. I have a question about unity error/exception that sometimes ignores. void Awake() { /* * do something... */ // Set title text titleObject.SetTitle("..."); } My code is just like this....

View Article


it says LogicScript not found what do i do to make the error go away.

![alt text][1] [1]: /storage/temp/204210-wwww.png

View Article

How do you remove garbage collector compute buffer error while using...

I am trying to use Polybrush1.1.3 on UNITY 2021.3.8f1 and as soon as I install it form the package manager and start working on a plane with Polybrush, yellow error message shows up. The exact error...

View Article

how do i fix my error?

im coding a 3D game and suddenly i got an error saying "Type 'WaypointFollower' already defines a member called 'Update' with the same parameter types" but the line it is referencing says "public class...

View Article


how do i fix my error?

im coding a 3D game and suddenly i got an error saying "Type 'WaypointFollower' already defines a member called 'Update' with the same parameter types" but the line it is referencing says "public class...

View Article


Unity playmode freeze

When I attached any script with my game Object the script is not working and the screen is frozen. The playmode is working without adding any script in hierarchy gameobject but playmode is not working...

View Article

Hi, I need help fixing this simple code

I am totaly new to unity and C#, and trying to make a sprite move up and down on the screen. I followed a tutorial and this is my code: using System.Collections; using System.Collections.Generic; using...

View Article

CS1003 and CS1026 help please, I need a '(' and a (?

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Playermovement : MonoBehaviour { public CharacterController2D controller.Move; public float runSpeed = 40f;...

View Article

error CS1526: A new expression requires an argument list or (), [], or {}...

using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterController2D : MonoBehavior { // Use this for initialization void Start(); // Update is called once...

View Article


Error "NullReferenceException"

I am new to C# programming and I was making a FPS controller from Brackeys (while adding my own code for sprinting, crouching, etc). I wanted to add Head bobbing so I copied it from GitHub. After...

View Article

Unity Netcode for GameObjects is throwing Invalid Cast Exceptions from its...

Unity NGO is throwing Invalid Cast exceptions from core scripts and when ServerRPCs are a called from scripts, I have not found a fix as of yet, this is the error it throws.

View Article


"Assets\MOVE.cs(19,25): error CS0019: Operator '+' cannot be applied to...

im following a brackeys tutorial and my code is identical apart from variable names but im getting the above error public float go = 5; public Rigidbody2D rb; Vector2 move; // Update is called once per...

View Article

unity says I have 2 update functions but I don't

heres my code im really confused i dont know what to do and i also have the same problem but for start using System.Collections; using System.Collections.Generic; using UnityEngine; public class...

View Article


How do I fix this?

I'm trying to attach a script to my main camera. The error message says that it can't attach the script component because no script class could be found. Ik this will sound stupid, but I don't know...

View Article

NullReferenceException: Object reference not set to an instance of an object...

error is in the name heres the code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class gunShooting : MonoBehaviour { public Transform Bullet; public Transform...

View Article

Unity Android Build failure

Hi, I have been working on my first android game using unity and have encountered an error saying: "java.io,IOExceptjon: Can't read [C:program FilesWni tylhubEditor\2021.3.13f1Editor Data car .jar]...

View Article
Browsing all 2891 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>