Quantcast
Browsing all 62 articles
Browse latest View live

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
Browsing all 62 articles
Browse latest View live