Rain Random
Hi. I'm kind of a noob when it comes to coding without the help of a youtube tutorial. so i've been trying to make a system when it will rain randomly and its has not been going so well. . . #pragma...
View Article3D Text with vars
How can i make a 3Dtext say a variable for e.g. var Testing = 1; function Start(){ GetComponent.().text = Testing; }
View ArticleParenting Objects
Hey i was wondering if someone can show me in java script a code that when you click on a object it will parent you with that specific object! so if i clicked on a object it will follow me around!
View ArticleCanvas Scalar Scale with Screen Size Bug
I have a UI image that takes the top 20% of the screen. I've set the Canvas Scaler to scale with screen size and set reference resolution to 1920x1080. The screen match mode is shrink and reference...
View ArticleImported font appears very messy on UI Text
I've imported a custom font and placed it on a UI Text. I've noticed that there are multiple lines around the characters on the text. As the text is scaled down more random lines appear and as it's...
View ArticleNetwork Discovery is not working over multiple devices.
Okay so I have spent the past 48 hours trying to figure this out but I can't. I'm trying to use the Unity Network Discovery component to have the clients find any local servers. All I want is for a...
View ArticleGet imported model to look nice
Now I know this is very vague but I've never really looked at the graphics part of unity, I've always just really coded stuff and left all imported models as they are but I would really like to know...
View ArticleClash of Clans clan system
I would like to know how the clan system works on Clash of Clans as I would like to have a similar system in my own game. I've tried looking this up on the internet but it just comes up with how to...
View ArticleIf statement not working!?
Heres my code i made sure that SpaceCoreInArea is 1 and yet it does not say "work" when i jump! #pragma strict function Start () { } function Update () { if(PlayerInArea.SpaceCoreInArea == 1 &&...
View Articlevisable object no matter how far a way
Is there a way i can have an object visable no matter how far away? Becuase I was making a space game where u can go to the moon but during night on earth u would be able to see to moon (which is...
View ArticleScene object to prefab
I have looked everywhere for ways to assign scene objects to a prefab but none is the way I wanted it. I need to be able to have an object in a scene, lets say a cube. I then stretch the cubes edges...
View ArticleJS to C# not workin
i have a c# void that i want called from js but is say it cant find it. . . js 'server_menu' GUI.Button(Rect(xb,yb,xbs,ybs),"Make World");{ CreatePlanet.Create_Planet(); } c# 'CreatePlanet' using...
View ArticleJS to C# not workin
i have a javascrip file where it calls a c# viod js 'Server_Menu' function OnGUI(){ GUI.Box(Rect(x,y,xs,ys),"","button"); GUI.Button(Rect(xb,yb,xbs,ybs),"Make World");{ CreatePlanet.Create_Planet(); }...
View ArticleNo Parent?
I have a Object called "Planet(clone)" (clone because its get instantiated) and it has a child called GravRad! var lol; function OnTriggerEnter(gr : Collider){ if(gr.transform.gameObject.name ==...
View ArticleMesh colloid er not working?
I have a mesh collider of a sphere hexahedron and yet it does not collide with my capsule collider. Its some times collides correctly and sometimes not. However I have code so that the mesh gets...
View ArticleAnything Maxim?
So I have been using unity for a long time now (2 years) and I was wondering is there any limits to how big an object is or how far it is? I have realised that you can not zoom out any further when...
View ArticlePhoton scene objects not players!
I am using Photon View to make my game multiplayer but when ever an object gets instantiated trough photon view it thinks that the object is a new player, so that I can only instantiate 1000 objects in...
View ArticleRPC with Random Numbers!
Here is my code using UnityEngine; using System.Collections; public class StarCreate : Photon.MonoBehaviour { public GameObject prefab; public int StarCount; // Use this for initialization void Start...
View ArticleAccessing Variable From Other Gameobject
Ok so I was hoping that when these to objects go collide or in my case enter trigger that they roll a dice and which ever is lower it gets deleted! Here my code. #pragma strict var Dice = 0; Dice =...
View ArticleNullReference
Here is my code using UnityEngine; using System.Collections; public class SolarSystemCreate : Photon.MonoBehaviour { public GameObject GasGiants; public GameObject Planets; float PlanetX; float...
View Article