Quantcast
Channel: Latest Questions by brandonhotdo
Browsing all 108 articles
Browse latest View live
↧

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 Article


3D Text with vars

How can i make a 3Dtext say a variable for e.g. var Testing = 1; function Start(){ GetComponent.().text = Testing; }

View Article


Parenting 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 Article

Canvas 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 Article

Imported 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 Article


Network 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 Article

Get 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 Article

Clash 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 Article


If 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 Article


visable 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 Article

Scene 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 Article

JS 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 Article

JS 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 Article


No 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 Article

Mesh 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 Article


Anything 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 Article

Photon 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 Article


RPC 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 Article

Accessing 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 Article

NullReference

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


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