Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

Lightmap is too light in Editor, right in the mobile device

Why is this happening? I baked my lights. Then in the editor the lights become like x2 intensity. But I tried compiling my game to my mobile device and the lightmap looks very normal as if it wasn't...

View Article


Moving Character Along Round Tunnel Walls

What I'm trying to achieve is to align and move character inside a (arbitrary shaped, yet round, twisting and maybe looping) tunnel shape with "feet" always touching the ground. Physics and path...

View Article


Procedurally generating a mesh?

So i wrote the script for my new infinite terrain generator, but when i run it nothing happens, Working with meshes is kinda new to me so i was wondering if somebody a bit more experienced could take a...

View Article

Are .gameObject and .transform both using GetComponent() in the background?

I know .transform usage should be cached for optimization. I can get around that by directly storing the Transform of the object so I can just say: var myObject : Transform; myObject.position =...

View Article

Joining a Running Server (Game) and Waiting for Game State Data. How?

I'll try and keep this brief and clear. I currently have a game with continuous play servers. When a client joins a server, he should have the current state of game before he can interact (or run some...

View Article


What am I doing wrong? C#

using UnityEngine; using System.Collections; public class MainGUI : MonoBehaviour { public GUITexture redKey; public GUITexture greenKey; public GUITexture pinkKey; public GUITexture yellowKey; public...

View Article

If you disable a gameobject, does an InvokeRepeating loop end or pause?

If you have a gameobject with a script running a current InvokeRepeating method and you set the gameobject to inactive, then back to to active, will the InvokeRepeating loop resume or will it have been...

View Article

How do I use a GUISkin as a button? C#

using UnityEngine; using System.Collections; public class StartUI : MonoBehaviour { public GUISkin customGUISkin; // Use this for initialization void Start () { } // Update is called once per frame...

View Article


Am I using CombineMeshes() incorrectly?

Greetings, I have browsed the answers here as well as google and can't seem to pin down the issue I'm having. Currently I have an octree, and by iterating over the bottom depth children, I am creating...

View Article


convert from additive transform.Rotate to new transform.rotation?

I have a robot that is running any angle around a spherical planet and I want to rotate his head so that it looks where the camera is pointing, and I have managed to with transform.Rotate, except that...

View Article

how to access a screen(separate obj in my app).

HI All, I am about to develop a calculator. for that my artist given me a calculator object. All buttons are separate objs and screen also.should I use GUI text for it., If so let me know the process...

View Article

Implementation of a calculator with a given object(calculator)

Hi All, I am about to develop a calculator. My artist given me a calculator object, in that all the buttons are separate objects and calculator screen also separate. How do I write the code for it for...

View Article

character dropdown when i move the box

I write a simple script to control the Box movement by TouchPhase(). When character on the box, character's transform can parent to the box and move with it, but dropdwon from the box.(it's overlap)...

View Article


transform.position over time? & mouselook rotate player?

I am trying to make parkour in my game, I have made raycasts and everything to make it work. But I have run into a few problems. Firstly, how do I make transform.position move over time? And secondly,...

View Article

Play on Weebly, host on Dropbox, won't pass install web player

I'm trying to play my game on my weebly website, but use my Dropbox as my host. I have installed the web player on my computer, and also restarted my machine/restarted my browser, but (on weebly) the...

View Article


Top down camera focus

I have looked this problem in couple sources now and still could not find a answer. I have a top down shooting game with camera at 55 degree in X axis. The problem is that the camera would follow the...

View Article

This is a test question, please ignore

(Just Graham testing the new moderation feature)

View Article


3rd party files in unity asset?

I have an world generator asset using whydoidoit's free multithreading script, and i want to use the Unity Robot Mechanim as a player in the world environment of the asset to show the asset works with...

View Article

C#, difference between foreach(var i... and foreach(Transform i...

Hi Everyone, Hopefully a quick question. I've recently decided to drop JS in favour of learning C# so this is probably a newbie question. It seems the compiler doesn't mind either of these: Transform[]...

View Article

Displaying score on screen in specific place

I have this script that keeps count of the score when the player collects a collectible, when i try and display the score on screen i get the same 3 errors and cannot figure out how to display the...

View Article
Browsing all 171066 articles
Browse latest View live


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