Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

Null reference that isn't null

I keep getting this error: NullReferenceException: Object reference not set to an instance of an object sPlayer.CollisionEvent (UnityEngine.GameObject other) (at Assets/Scripts/Actors/sPlayer.js:111)...

View Article


Can I make an existing mesh into a terrain?

I'm new to Unity and I created a terrain in Rhino using a parametric function plugin (grasshopper) using real world information taken from QGIS. I then brought that object into Maya and then after...

View Article


Make code execute for a specified time?

Once i click a cube in my game i wish for the timescale to be half, therefore halfing the games time, the problem is how do i do this for say 5 seconds? Is there any way of possibly keeping it in the...

View Article

I downloaded the web player to play a game but when i try to play the game it...

View Article

Yield Script Update Error

Hi, I'm making Sparky Konga, an interactive game application using the DK Bongo controllers (You can watch my Beta test Video Here: https://vimeo.com/63044764). My problem right now is that the...

View Article


SHMUP - Scoring and Scripting Help

Hey guys and gals, I'm creating a SHMUP using unity 4. However, I am a beginner to scripting and am still quite lost and unsure of whats what so I was wondering if anyone would be able to offer some...

View Article

Can't create orange label

Hey guys, so i want to create an orange text color label, but it turns yellow. I have this: Color newColor = new Color(255, 127, 0, 255); (i think this is the code for orange) but it shows yellow for...

View Article

Changing the scale factor in FBX Inspector destroys the model

Hello everyone, I'm trying to import a FBX into unity. I'm not sure why the default scale factor is 0.01, but once I changed it to 1, my model has disturbed. In general practice, should I change the...

View Article


I'm computing my surface normals in the fragment program - so why does Unity...

Hi all, In computer graphics there exist techniques for computing a surface normal in the fragment shader, without needing per-vertex information. This is done by using ddx/ddy of the fragments world...

View Article


how do you AddExplosionForce to children of an object (an object with a...

because of how my game works, all of my objects have a rigid body on them and a bunch of basic colliders on them as children so like a bunch of basic colliders(sphere, capsule etc.) in empty...

View Article

Basics of Collision help. Working with character controllers.

I have a bit of C++ experience, but this is my first attempt at anything Unity. Currently the plan was to make a small, 3d, adventure game, and i'm working on being able to interact with NPC's. I have...

View Article

Mecanim animation window

Hello, is animation window capable of editing only Legacy animation? I'm working in unity 4.1.2f1. All mecanim animations are depicted as read-only in this window and there is a warning in Console...

View Article

Mecanim animation clip mask

Hello, I'm using Mecanim in Unity 4.1.2f1. I am wondering how to use body and transform masks for animation clip (not for animation layer). Can I set per-bone mask? Or it wold be overrided by bodymask...

View Article


Cubemap Diffuse / Heightmap Shader Issues.

I'm trying to code a shader that uses two cubemaps, one for diffuse and one for vertex deformation. There going to be used on a quad sphere. My shader skills are yet to be...refined shall we say. I can...

View Article

Player Controller and Jumping

I am currently following walker boys tutorials and am working on the Mario clone. I've done a lot of things different from him due to personal preference. I am having a really hard time getting my...

View Article


Issue with a script which causes the editor to freeze on play

I have created a script (below) which when I press play causes the editor to go not responding, so far I have found that the error is in the spawn or delaydecrease function #pragma strict var...

View Article

Animation AimUp & AimDown with the Mouse ?

help a beginner of a fps .... why only 1 animation works =? function Start() { // First set both animations layer value to something different to each other. This allows you to play them both at the...

View Article


Increase the movement of the animation clip

Hey everyone, I'm wondering how I can increase the delta movement of an animation clip. For example, I applied a walking animation clip to a model(I changed the scale factor), but I found the movement...

View Article

Classic 2D player movement

Let's assume following setup: Player can move along X/Y-plane. Z represents depth (for simplicity 0 is constant for depth). Now I have player surrounded in the box with walls. How I can limit player...

View Article

.NET assemblies and non-.NET platforms

I'm fairly new to Unity still, and I'm curious about what happens when you use any .NET assemblies in your scripts, and you build and run your code on say an iOS, or Android device. For example, say I...

View Article
Browsing all 171066 articles
Browse latest View live


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