Quantcast
Channel: Latest Questions by Tanoshimi2000
Browsing all 91 articles
Browse latest View live

What to send when networking?

So if I'm taking an existing game, and making it networked, what's the best way to do that? I know I can send the transform, and then the network clones will be in the correct position and rotation,...

View Article



Child with Rigidbody doesn't move with Parent with Rigidbody

Ok, so I have a helicopter prefab with a rigidbody to control movement. Attached as a child is a missile that has a rigidbody so I can use that when I launch. I had thought the child would move with...

View Article

NETWORKING: Start as Host if no Host; Otherwise Start as Client

Topic says it all. This is a simple versus game. Two players, Host and Client. I don't want to use the network HUD, I want the game to automatically connect. If you're the first one there, you should...

View Article

Can I detect a doubleclick on a Gizmo or GameObject?

Simple problem. I want to perform an action when a Gizmo (or the GameObject) is double clicked. Is there any way to watch for that event? I'd rather not build something that listens to the input for...

View Article

Two projects with same (Cardboard) prefab, but one works and the other doesn't

So I had a simple Cardboard Sample app that splits the screen i half and displays the image in both halves, allowing you to use it with Google cardboard for VR. Tried it. Works with no problem. So I...

View Article


SceneManager.GetAllScenes() only returns the current scene

I've got a project where I simply want to put a scene menu. Here's the code: using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class PickScene : MonoBehaviour {...

View Article

How do I use uNET to send client data to server (SyncListBool goes the wrong...

OK, so I've looked for an answer to this, but they're all using the old networking system. I know that SyncListBool gives me my array of bools, and when I use them in the server, the client gets...

View Article

How can I tell what's happening during Compile? It's taking way too long, and...

I have a simple, one scene game that's a helicopter simulator. There's a terrain, the helicopter prefab, Missile prefab I wrote, machine gun prefab, and the scripts to run them. There are also a few...

View Article


Why is my debris causing serious lag?

So I have a prefab explosion and it contains about 12-15 large pieces of debris. Each piece has a capsule collider and rigidbody attached. Explosion works as expected, but then as the debris field...

View Article


Why does my model not display proper material?

OK, I've no idea what's going on here. Simply put, I can throw a material on any object in the scene and it will show, except the model I've imported. The picture will demonstrate better. ![alt...

View Article

Why does Accessing an instance of ProceduralAnimation stop the animation?

Ok, so I have a ProceduralMaterial that's animated, and I use it as the material for my Shields. Now each shield can be a different color, so I've written a script that allows you to change parameters...

View Article

How to access the textures within a skybox from script

So I have a shader that uses reflective textures, and I have it set to my skybox texture. But when my ship jumps sectors, the skybox changes drastically. How can I get the textures from the skybox to...

View Article

Collider doesn't move my LOD Objects

Ok, so I purchased Modern City Pack, which contains street lights in LOD layers. I've attached mesh colliders and/or box colliders to this object on many layers (Topmost layer, and directly on the...

View Article


Progress not showing for items in Start()

So I have two scripts that are run at Start(): PlacePeople and PlaceCars that scatter people and cars in my scene. It can take a while, so I wanted percentage bars to show you why the game wasn't...

View Article

How do I downsize all textures for mobile version?

I have a game that uses assets designed to work at 4k and it looks awesome. Made a copy of the project and converted the copy to Android. Compiled and installed on tablet, but it crashes. Doesn't tell...

View Article


How can i tell which joystick input came from?

Old question, still not answered sufficiently. I have a gaming station that has a steering wheel controller, flight stick (hotas), light gun, and xbox 360 controller connected to it. I have written...

View Article

3d Prefab on 2d background (again)

I've seen answers for this, but most of those seemed to be about heads up displays, which is not what I'm trying to accomplish. I want a 2d GUITexture background and text, with a 3d prefab rotating in...

View Article


Vehicle on turntable not turning.

Simple problem. I have a turntable that I rotate in code with: Turntable.transform.Rotate(Vector3.up*(Time.deltaTime*30)); And I drop a car onto that from about 2' up. Car lands on the turntable, but...

View Article

Script to run at creation of Prefab, not Start or Awake

Topic says it all. Basically, I need to set some variables when the prefab is dragged and dropped onto the scene. For example, I have a prefab of cars, and a script that changes the color of the car to...

View Article

Thrustmaster wheel controller giving me weird values

I have a thrustmaster force feedback wheel, and it works correctly in all other programs. But I cannot just tie it to the Input class, because when I do I get really weird results. I believe it's...

View Article
Browsing all 91 articles
Browse latest View live




Latest Images