Quantcast
Channel: Latest Questions by CallToAdventure
Browsing latest articles
Browse All 62 View Live
↧

Copy Euler Angles

Let me first describe the situation in the game: I have a gameObject with two control types: wheel colliders and steering for a vehicle on the ground behavior and one for flight - with simple physics...

View Article


Center of mass, three wheeled vehicle

I have a 3 wheeled vehicle with the front wheels one size and the back wheel about 30% that size. I played with the center of mass and mass itself a lot jut to be able to stop it from bouncing. As soon...

View Article


Audio Pitch

I have a nice dive effect to which I want to add a pitch value to the sound; my problem is that the pitch is rather sudden - I need a larger fade value when I pitch; here's my code: if(...

View Article

Raycast Hit Distance

I have a target object - literally a target with three hit zones - about 20% of the target is the bull's eye zone, outward another 50 to 70 % is the great hit zone and the rest, towards the rim of the...

View Article

Magnifying glass -like trick.

Hi there I am not sure how this can be done so I turned to **answers** for some advice. I have a letter (on a texture) with handwriting on it. Basically what I want to do is move a "magnifying glass"...

View Article


Hide default Game Center Achievements UI

I made my own achievements graphics and I would like to hide the default ones. I found this in the GameKit framework: GKAchievementViewController the problem is I don't know how to comment it or if...

View Article

Timer for repeated action

I have a really nice light bulb with a switch somewhere in the scene that turns the scene into a dark room (using a black texture with alpha). All works just fine. However, I want to implement the...

View Article

GUI.depth and Particle Rendering

Hi there I have this fade to black script on the main camera that will create a dark room effect using GUI.depth. My problem is that I want to be able to - while the fade is on and the screen is dark -...

View Article


Facebook login session

I successfully implemented prime 31 plugin however, I am wondering how to keep a user logged in. I don't want him/her to see the login page each time they play. Any ideas? Thanks!

View Article


Application Capture issue

I am using the Facebook composer from iOS 6 with prime 31 plugin and I have a funny issue due to, probably, the size of the image - iPad 3' 2048x1536. Each time I call the composer I also take a...

View Article

Reading Player.prefs

I am trying to change the material of a medal - this is paired to Game Center Achievements; ANd I am using player prefs to show my custom medal (as opposed to the default GC achievement on top); Now -...

View Article

Change www texture every day

I am trying to change the texture of a model every 24 hours. It's like a little story with pages unlocked each day. I figured how to check the day of the week : var url =...

View Article

Check Internet availability

I want to change the red question mark texture applied to a material if the WWW loaded texture failed due to internet / connectivity issue; I am using this : if( Application.internetReachability ==...

View Article


How do you calculate chance

Ok, this sounds ridiculous. But how do you calculate a chance of one in 1 thousand? I want to implement a very rare event.

View Article

Refresh for www images

I have a simple script to load an image from the Internet into a texture. Then, a check function will load a different image from the project with a message like "your device is not connected to the...

View Article


Change material on Object / Raycast

I want to be able to change the material of specific tagged objects; For instance, I have activated a palette of colours and textures that only work on objects with the tag "wood". I don't want to...

View Article

Unity 4x Set.Active warnings

I upgraded to unity 4.0 and I get a lot of warnings and possibly from that, mac appstore validation fails. I am activating/deacivating a couple of game objects with this #pragma strict public var...

View Article


Unity 4.1 Dual Display not working

I found this thatțs suppose to work with two cameras and AppleTv airplay. using UnityEngine; using System.Collections; namespace UnityAssets { public class DualDisplay : MonoBehaviour { public Camera...

View Article

Mac AppStore & Sandbox

It may take a while before Unity will take care of these issues and the building and submission would smooth up a bit. I managed to get one step closer to the submission process. However, one last...

View Article

Change LookAt camera target on Waypoints

I am trying to move a camera along a path but change the target of the camera now and then, for example when I am at a particular waypoint; but i cannot figure out how to get that waypoint in script. I...

View Article

Change materials from arrawy with tag check

Basically the model in the scene has to be simply setup - each part that has a material(s) is tagged and when I click on it it should cycle through the available materials set in the inspector. It...

View Article


Sinus for rolling waves

I got this script on a plane mesh doing some nice rolling waves however it looks a bit too perfect - the "waves" are rolling in one direction only. I'd like to add some noise to it var scale = 10.0;...

View Article


Active in Hierarchy

I am an artist and I can't figure out the new activate/deactivate scripting method for gameObjects. I just can't upgrade to the new method, nothing works. Here's what I have before unity 4.x //This...

View Article

Timed event Question

I am not sure how to approach this - I have a day/time cycle and the 24 hours cycle is a variable - in my case, 30 minutes; That means night takes 15 minutes, day - 15 minutes. Now, I want to activate...

View Article

Mixamo Call Animation from Script

I have this NPC moving around on the navmesh, I imported it by the book, as well as it's 2 animations, following the tutorials on Mixamo.com. Set up the state machine with the 2 animations plus...

View Article


Instantiate at position

I am trying to implement a simple throw-stone script and everything works fine But the position of the instantiated projectile. I am using mixamo animation events for this - and I am instantiating a...

View Article

Player prefs iOS

I am trying to create a simple "plane selection" menu using player.prefs but for some reason it doesn't work; In the selection level I have a scroll view with buttons and the following script: Each...

View Article

Pause the Game not the UI Canvas

Scratching my head on this for a few hours now. How do you pause the game without using time scale? That is, to pause everything BUT the menus? Thanks in advance for any pointers!

View Article

Trouble changing UI Image Sprite

I try to set up a little script so that the player's vehicle of choice remains selected between game sessions. I got this so far, tried to new docs for some examples but couldnt figure it out yet; I am...

View Article



Update Just Once

I can't figure out this, I know it's been answered around a lot, but trying to figure out if an object is alive or not (exists in the scene or not) in order to activate another object if so, I did...

View Article
Browsing latest articles
Browse All 62 View Live


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