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

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

NullReference

I have gotten a null reference exception on line 10 using UnityEngine; using System.Collections; public class MainMenu : MonoBehaviour { public int ServerPort = 25565; public int MaxiPlayers = 27; void...

View Article

Servers and ip address

So here is my code using UnityEngine; using System.Collections; public class NetworkManager2 : MonoBehaviour { public static NetworkManager2 Instance; // Use this for initialization void Start () {...

View Article

Port forwarding

So I have been looking around the internet on multiplayer for unity but every thing I watch/read makes me even more confused on how it works! Most games you just port forward a port (usually the game...

View Article


Networking Error!

So this is the error! View ID AllocatedID: X not found during lookup. Strange behaviour may occur. (A second error that always come's after the first one) Received state update for view id'...

View Article

Deleting RPC objects

Hi. I've been faced with a bug that stops me from coding and that's how when I instanite an object through rpc's to all (on server mode) I get a lot of errors when deleting it! So could I do an rpc...

View Article


Unity pauses when tabbing out!

It seems that when I tab out of unity is pauses. So if i had unity to one side of my screen and something else on the other unity would be frozen until I click on it! Now I thought this would not be a...

View Article

Multiplayer Gun Script

So here is the script for the gun using UnityEngine; using System.Collections; public class GunScript : MonoBehaviour { private GameObject FirePort; public Rigidbody BulletType; public int BulletSpeed;...

View Article


Terrain trees

Now what I want is simple. I have looked over the internet on how to interact with terrain trees and all of the scripts are very complicated. I just want a script that when I click on a certain terrain...

View Article

Syncing times

So I have a day/night cycle but the problem is when you make the server it starts of day by default and lets say you waited to the afternoon, then when a new player joins for him it's the morning and...

View Article

Multiplayer un-synced

So what I have been trying to achieve is to call an rpc and have it create 100 trees across the map and I have achieved that but for every player the trees are in different places. . . so here's the...

View Article
Browsing all 108 articles
Browse latest View live


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