Quantcast
Browsing all 108 articles
Browse latest View live

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


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

Exporting Problem

I made a game in unity3d and when i export it to windows (the build and run thing) the game is very very buggy and nothing works! however in the editor in unity every thing is fine! this bug is killing...

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


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

Player Sync

I've made a script that spawns in a player after the server is made and spawns in a player upon connecting to a server however it seems that only the host can see where the players really are but none...

View Article

If RPC "Name" is being called.

So I was thinking about a way to fix a problem in my game. Right now when the player spawns into a world it is attacked by many RPC calls and so a lot of them are delayed (the important one like...

View Article

Mecanim delay

I have a trigger (called punch) in mecanim so that when the player clicks it is activated. I have a default animation which is just an empty state and when punch is activated it transitions to a...

View Article


Mecanim Animation Stop

So here is my animator controller: ![alt text][1] [1]: /storage/temp/47173-untitled-1.png When Attack is triggered the Punch animation is played. In the punch animation when the fist if fully expanded...

View Article

Water 4 Advanced Internal Reflection

Alright so I've accidentally set the advanced water shader's internal reflection in unity to nothing and I can't find out what it used to be. It's made the water randomly appear and not. Can someone...

View Article


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

Mesh Collider and Raycasting

I have a script that generates randomly generated Islands. The problem is when I call a raycast to the island the raycast doesn't hit it. The Island does have an enabled mesh collider (which it the...

View Article


Odd Point Light Shadows

So I have a scene made up of multiple blocks. Every 4 meters is a new block/wall however due to there being no space between the blocks makes the scene look like that it's made up of large blocks....

View Article

How to make a dedicated server

So I've been making a game in unity that has multiplayer. The issue is that the host would have a lot of lag as it has to load a lot. As well has he has to stay afk on the server to keep it online. So...

View Article

Terrain Collider

So I've been modifying the terrain's height in while in playmode. The problem is that the terrain collider does not update with the terrain! It just stays as a flat collider. I'm modifying the heights...

View Article
Browsing all 108 articles
Browse latest View live