ScreenToWorldPoint giving strange results
Hey everyone! I'm working on an element allignment system for my own GUISystem. Something simple, but good for now. Everything works fine except for the ScreenToWorldPoint function, which don't give...
View ArticleScreenToWorldPoint not working propertly in the editor?
*This question is a continuation of [this one][1]. Hey everyone! My problem is the following: When I want to place an object at the borders of the camera in the editor, this gives me strange results,...
View ArticleReseting armature's rotation in Unity
When I import a model with armature animations from Blender to Unity, why I can 't reset the armature's rotation? When I press play button the armature always get back to the same rotation that it was...
View ArticleWhat we can achieve by putting MonoBehaviour inside namespaces?
Hey guys! As everyone, I'm really excited about Unity 4 coming out in some weeks(or days, maybe..?!). I took a look in the release notes and I found out an interesting update(well, I think it is...):...
View ArticleOnEnable() isn't getting called after reloading a scene
Hey everyone! I want to ask for some help in my project. It works this way: Is kind of a tower defense game where I need to defend the base against spiders, and I have a system based on waves. A wave...
View ArticleCall functions in other scripts like Update() and Start()
Hey everybody! I'm very curious about how to do the same as Unity does with Update and Start methods. Like having a script which handles the function calling and call the method for each script that...
View Article2D Game with 8 different views and character's body desintegration - need hints
Hey everybody, I wanna ask if one of you had already seen something like this before: I have a 2D game. In this game a can rotate my character in 8 different angles. For each of these angles, I have...
View ArticleBest way to create a ball controlling system for a football game
Hey guys, how are you doing?! I'm having some trouble to find out what's the best way to create a ball controlling system for a simple football game. Of course, I could just set the ball's parent as...
View ArticleIs there any way to find connected vertices in a mesh which was imported from...
Well, I think the question is well explained. What I want is to create a navigation mesh. But in this case I'll just use connected vertices. So each edge represents a neighbor of a certain vertex. Is...
View ArticleTotally lost about the way we must positionate the UIJoystick
Hey everyone! Recently, I've downloaded UIToolkit to give it a shot. Now, I'm trying to create a UIJoystick, but I don't get how UIToolkit positionate the item on the screen based on the parameters I'm...
View ArticleMaterials with bump shader not being batched [Mobile]
Hey everyone! I'm currently developing a mobile game, and I'm looking forward to use materials with bump maps. The meshes that receive these materials are pretty low poly, they don't go over 200 polys....
View ArticleOculus only rendering content on left eye
Hey everyone, So I'm working on this project for Gear VR using Unity 5.0.0p2 with all the plugins up to date. Once I drag OVRCameraRig to my scene (ensured that there are no other cameras) and hit play...
View ArticleBest approach to create a one-wheeled vehicle physics
Hello everyone, I'm currently trying to create a one-wheeled vehicle in Unity. My first approach was using Rigidbody and a SphereCollider that contains the whole model. The transmission system is all...
View ArticleBest way to ground something when hitting the ground with physics
Hello everyone, I'm creating a physics system for a monowheeled vehicle and I'm trying to figure out what's the best way to keep something grounded when touching the ground. My vehicle keeps bouncing a...
View ArticleVehicle using a wheel collider wont point in the direction of movement
Hi guys, I'm designing a vehicle that only has one wheel. It works great, except for steerAngle. When I set the steerAngle, the vehicle starts moving on a different direction, but its body won't point...
View ArticleWhy does a Texture2D is being initialized with all colors set to (1, 1, 1,...
Hello everyone, I'm initializing a Texture2D of 512x512 a few times per frame. I noticed some areas were getting transparent and I assumed the texture was 100% opaque white. Then I tried to print the...
View ArticleMecanim won't play any animations
Hey everyone, I have Mecanim setup with just one BlendTree with a 2D blending that controls the steering/acceleration of a vehicle I have. My animations are all imported and I can preview them in the...
View ArticleTouch phase changes to Ended before I take my finger off the screen (Cardboard)
Hey everyone, I'm trying to create a system to fire an event when you hold your finger on the screen for more than 1 second. Should be pretty simple except the phase of the current touch is not...
View Article[Cardboard] Camera rotates even if device stands still
Hi everyone, I've been facing a weird issue with a cardboard game I'm coding. The problem is that after some time it looks like the gyroscope looses calibration and the camera rotates on the Y axis...
View ArticleHow to invert normals of a geometry generated inside Unity?
Hey guys, I generated a geometry in Unity and it acts as a wall, but for one of the sides to work correctly, I need to invert the normals. Somewhere around the internet I was advised to get the normals...
View ArticleSubstance Designer material's metallic and roughness not working on Android...
Hey everyone, I have a scene with a game object using a procedural material from Substance. At first, I got a grey screen after the Unity logo and then I realized I had to change the load behaviour to...
View ArticleSCORM access from Mobile
Hi everyone, I've been wanting to integrate SCORM with Gear VR. The problem is that, apparently it only works on WebPlayer so this is an issue. My question is if it's possible to use WWW and WWWForm to...
View ArticleShader: How to get a greyscale screen texture with the pixels as emissive areas
Hey everyone, I'm trying to work my way into shaders these days and I've been thinking about a bloom shader as an Image Effect. I thought: well, I can grab the current frame and a 'mask' with all the...
View Article[Solved] Problem getting custom blur image effect to work
Hey everyone, I've been coding a very simple blur image effect to serve as a liquid renderer. Basically, a blur the image containing the liquid primitives and get all the pixels within a certain...
View ArticleProblems with custom image effects in VR
Hey everyone, I'm currently trying to create a simple image effect in Unity. It works great in the game view, but wearing a Vive, the effect is all messed up. Basically, I have the main camera...
View Article[VR] Does rendering to a texture support 'single pass rendering'?
Hello, I'm trying to create an image effect that is a mixture of the output of 2 cameras. One renders a specific layer, processes it, and then another pass is responsible for combining the two...
View ArticleAdding script in runtime makes pre-set fields null
Hello all, I have a script in the Assets folder with all the fields pre-set (those who show up above the script's text in the Inspector). When I add this script as a component to a GameObject manually...
View ArticleUI rebuilding every frame after Unity 2017 upgrade
Since I updated my project from Unity 5.6 to 2017.2.0b11, my User Interface has turned into a huge bottleneck. My canvas is basically composed of 2D elements that target some 3D object, making the 2D...
View Article