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

Unity time counter 50% slower FPS?

Hello, I have made a time counter to my game, to show people how long time they have played the game. When I use the script on my PC it work's fine and I don't notice any FPS slowdown. But when I play...

View Article


Trouble getting bullets to stop at solid blocks

I'm currently working on my first game (a 3D side scroller. It's a parody of Super Mario Bros) and until now I've been able to find answers via google searches, but now I've stumbled across a...

View Article


Getting a list of folders from a specified folder?

How do you get all the folders from a directory into an array, or some list?

View Article

Parse URL passed parameters on Standalone Mac build

I'm trying to make it so players can launch our Unity game from a URL, and to capture the parameters passed. I've gotten as far as registering a URL-scheme handler by editing the info.plist, and that...

View Article

Local Vector 3's

I need to set my vector 3(wanderPoint) to wander point plus 5 along the local z axis(forward). i tried something like this, wanderPoint.y = transform.localPosition.y; wanderPoint.x =...

View Article


Share video memory between two running unity games?

I'd like to run two separate game instances, but have one instance render-to-texture in the other instance.. What I'm trying to achieve is to render the same game to two monitors. The two monitors do...

View Article

Turn off texture filtering completely?

Here's my problem: I have a texture of size 4x4 pixels that I want stretched over a mesh. Bilinear and trilinear filtering modes are no good since the texture becomes blurry. Point mode is the only...

View Article

Plugin which renders in fullscreen on second monitor?

Does it exist? If not; is it possible to write one which does this? Just to be sure; The unity game would render as usual in fullscreen to the primary monitor, then the plugin would be used to *also*...

View Article


Question regarding proper class coding.

Hello, I come from a Java background and am new working with Unity. Let's say that I have this gameObject with an Entity component, all Entities must have a health variable. In Java, I would have made...

View Article


Multiple MeshFilters for a GameObject

I have a Ribbon object, which I am creating dynamically and appending quads to it's mesh each frame. In order for it to remain visible as it twist due to backface-culling I have to have two meshes one...

View Article

Problem in transparency with Transparent/Diffuse

Hi all, I has a problem with the transparency of a plane. This is the code to create the plane et apply the shader and texture. obj.renderer.material = myMaterial; obj.renderer.material.shader =...

View Article

Animating Heightmaps in Tessellation Shaders?

Im fairly new to the language of shaders in general. Does anybody have any tips for animating heightmaps within a tesselation shader? Perhaps fading between two / three different maps, or procedural...

View Article

Mecanim & importing models with twist bones.

Hi I'm having quite a problem to properly import model with twist bones and create avatar of it. If I simply select the upperarm/forearm/hand bones for my arm, the model will not properly animate with...

View Article


Offline Multiplayer Spawn

Hi! I'm making an offline multiplayer blattle game, a top of 4 players, split screen, but i don't have a clue how to make the players spawn on 4 different places, i'm now to programming cause i'm 15 y...

View Article

How Do You Select Prefabs or Instantiated Objects with the left Mouse Button?

I now know how to select game objects with the left mouse button but does anyone know how to select instantiated objects with the left mouse button? So for example if I wanted to instantiate 10 cubes...

View Article


Check external application preferences error

Hi ! After I open Unity and try to open any script I have this error : Unable to open Assets/xxx/xxx.cs: Check external application preferences

View Article

Determining if something is on the Left or Right of an Object

How can I determine whether something in the world is on the left or right of an object even if the object is rotations. I have a vehicle that i'm trying to create an AI for but i need to be able to...

View Article


Make a collider NOT collide with CharacterController

Hey, is it possible to let a collider collide with everything EXCEPT the player? I use the DragRigidbody script and it's nice but it gives the player possibilities to glitch when the dragged objects...

View Article

C# GameObject is not detecting collision with Character Controller

Hi everyone, I have a script that detects when a Character Controller collides with a gameobject. I have attached my script to the gameobject but the script isn't detecting when I move the Character...

View Article

Network connect Set username...

With the Network.connect function can you send a variable through aka a username... so I can work with a username later in a network chat system within my game... Can this be achieved?

View Article
Browsing all 171066 articles
Browse latest View live


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