Cant call function in js another script
Hello there first post after lurking for a while. I am experimenting with the zigfu toolbox and a kinect. I created a collision with the hand object and a trigger for basic interaction. I want to...
View ArticleWhich object reference is not set to an object instance?
So in "SentenceDisplayScript I create some text and try to at the same time, send that text as a string to another script, which is on the same object. I've encountered various bugs but the constant...
View ArticleHow Can i delete Object Clone
Hi Everyone, I am making one ball game and i am trying to create obstacle's in a dynamic way, I am using Instantiate for creating obstacles but when i am trying to Destroy my old object (clone) on that...
View ArticleGet exact terrain height
I need to place a small square on the terrain at runtime (cursor in a grid-based game). The terrain has hills n whatnot, so I need to know the height of the terrain at all four corners of the square,...
View ArticleAbout untity send messages with android?
at androiod send a message to untiy need to extend UnityPlayerActivity to use UnityPlayer.UnitySendMessage send a message, but the activity is an interface, I need to make untiy download some data in...
View ArticleAdding a delay to a very simple Pong AI
I'm learning Unity and decided to make Pong since it's pretty easy to make and I'd learn some stuff doing it. Right now the enemy paddle just uses Lerp to follow the balls Y position. I want to make it...
View ArticleHow do I apply certain prefab changes with a Script?
I have a prefab that I changed the texture to with a script and I want that to apply to all the prefabs that are instantiated afterwards. How do I do this while the game is running? In C# please.
View ArticleDestroy not working cross-script
I have got two scripts in my game: - **Manager_Script** which is attached to an empty GameObject - **Player_Script** which is attached to my player prefab. In the Manager I do my logic stuff, the...
View ArticleHow do I select from the children of a class from the GUI?
I want to be able to select from the children of a class in the GUI. Like so: ![alt text][1][1]: /storage/temp/14876-selectability.png The little option boxes appear when it is a child of MonoBehavior,...
View ArticleMy character fly up very slow.
I modified code, that allows first person controler to fly. Everything is working fine, but... for some reason, my character fly up slower than goes down. My code below. Any idea? var speed = 6.0;...
View ArticleInstantiate object with renderer disabled
Is it possible to instantiate an object from an asset bundle with its renderer disabled? or would I have to disable it before I build the asset bundle?
View ArticleUnity Pro Trial - after export to iOS no realtime shadow
Hi guys, for testing out the performance of my iPad 4 I yesterday registered for the Unity Pro Trial to enable realtime shadowing on my directional light in my testscene. As been said on the unity...
View Articlehow to make what we type appear on gameobject prefab with 3d text
using c# GameObject boxbox = (GameObject)Instantiate(cube, new Vector3(Distance -3,Height,-7.7F) ,Quaternion.Euler(90, 180, 0)); this is my current instantiate code..currently i've created 3d text and...
View ArticleShader LOD ignored using GL.vertex?
Hello, I am experimenting with Shader LODs for my game, it all works fine for surface shaders and custom shaders, however when I try to apply a shader with several LODs to a quad rendered using...
View ArticleMouseLook doesn't work!
Hello :) I've got my project done. I built it, then I tried to run it but I've got a problem. Everything works fine except mouse look(First Person Controller). I can move my character. But **if I run...
View Articlegarbage collection not cleaning up material that isn't referenced on android
I have a game with two scenes, **menu** and **game**. When jumping from the scene **menu** to **game** on Android one of the textures used in **menu** isn’t removed from memory. However, this problem...
View ArticleGravitational pull without losing speed
Hi! I'm making an object A that has a gravitational pull on another object B that's at a constant speed. The pull works perfectly in the angle I want, however I'm using AddForce to accomplish the pull...
View ArticleLookAt without Y axis
i have this on my enemy AI script: transform.LookAt(Vector3(target.position.x, transform.position.y, target.position.z)); i wrote transform.position.y instead of target.position.y to make the enemy...
View ArticleHelp!!! Unity acting weird as hell! Its basically unusable!
Well I opened unity one day to find it acting like this, the window would lag and act weird and stutter as i moved it or moved around in it. I though maybe it was cause i didn't update to the latest...
View ArticleSwap animations
Hi, is it possible to swap animations in unity either with a script or playmaker? ![alt text][1] For example, I'd like to temporarily replace Element 0: 'walk' with another different animation also...
View Article