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

video Greenscreen with alpha mobile

Hi I have a question, I want to make a green screen video in Augmented Reality, the question is that of how to achieve that unity I respect the alpha is a MobieTexture, which is not compatible with...

View Article


how to solve in this error "The name `CowboyRap' does not exist in the...

using UnityEngine; using System.Collections; public class Audio_RanGen : MonoBehaviour { public AudioClip[] sound=new AudioClip[1]{CowboyRap}; // Use this for initialization void Start () { } // Update...

View Article


How to assign multiple audio files to scene by using array audioclip in c#...

View Article

Flatten two textures into one with alpha

I am building a texture editing app. When the use goes into editing mode, the canvas uses a shader that has a separate alpha channel (the Stencil texture below). Properties { _MainTex("Base (RGB) Trans...

View Article

Make Raycast keep shooting

My raycast script only lets my raycast shot once, but i want it to shoot like a machine gun not a single fire weapon, is there any part i can add to my script to make the raycast keep shooting while im...

View Article


Check if an int is equal to an array int

i want to do something if my integer is equal to any element of an int array using this variables: var myInt : int; var myIntArray : int[];

View Article

Turn based game switch player issue.

Here's what I have: function Update() { if (player1Active && click) { player2Active = true; player1Active = false; Debug.Log("Player 2"); } else if (player2Active && click) {...

View Article

Unity Shaders and Maya CGFX

Hey all, I am new to Unity, but not new to development and 3D by a long shot. We are working on ramping up our Maya -> Unity Pipeline and I have a question. One of our teammates worked at a previous...

View Article


Snap mouse along oblique boxCollider

Hi, i try to create this but i have a problem when the boxCollider has a oblique position. I create the first wall and it has a boxCollider for all the length on one side. I create another wall and it...

View Article


Instantiate a Prefab as child

Hello, I try to Instantiate a Weapon as an Child of a Empty Gameobject which is in Position with the Right Hand of my Model ,it works well but the Position of the Weapons are not correct ... GameObject...

View Article

calling a script that starts a number.

i just came over a problem on calling a script. i was about to call a variable from another script that has a scriptname that starts a numeric value like (2-2scene.js). i tried the var other: 2-2scene;...

View Article

Solid objects

How to make a solid object so that character cannot walk through? My main object is a big spaceship ( http://prntscr.com/zwkh8 ) but my character can walk through (activated components on the...

View Article

How to modify output color of Built-in Terrain Shader with more than 4 Splat...

I changed the Built-in Sureface Shader to modify the output color in certain circumstances. In fact I implemented Fog of War for parts of the terrain that isn't visible by the player. That works great...

View Article


Check array slot against corresponding slot in another array?

I've been trying to learn about arrays and I thought making a Simon game would be a good learning experience. I've got a Simon array where the AI picks a random value and stores it into an array. Then...

View Article

How to use different bvh animations on a single mesh

Hi all, I recently accquired the truebones bvh library and was looking forward to testing it on Unity. I followed the instructions and did the following - I exported a non-rigged, stand-along version...

View Article


How to return key pressed from Update?

As the question asks is there a way to return the KeyCode of a button pressed from the UPDATE function? I am aware you can achieve this from the OnGUI method using the Event handler but I am already...

View Article

Compiled Game Crashing

Hello! I got a problem when trying to run a compiled game, this is the first section of the error.log: DS_TEST.exe caused an Access Violation (0xc0000005) in module DS_TEST.exe at 001b:012e6bfa. And...

View Article


2D Sprite Background Rendering

Hi all, I made a bunch of 2d sprites for a small top down rpg game i'm going to start as a side project and I imported the sprites into Unity and it appears Unity renders the defaulted green background...

View Article

Attacking a Prefab

Instantiation of a player prefab is not recognizing an Instantiated enemy prefab. void Update () { if(Vector3.Distance(transform.position, Enemy_Troop.transform.position) <100 &&...

View Article

Prime31 Facebook login failing if logged into facebook through settings

I'm using Prime31's Social Networking plugin to access facebook in my iOS game and can login to facebook fine when the player isn't logged into facebook through their phone's settings, but if they are,...

View Article
Browsing all 171066 articles
Browse latest View live


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