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

Texture 2D gradient power bar

function OnGUI(){ var maxWidth:int=50; var blackTexture:Texture2D = new Texture2D(1,1); blackTexture.SetPixel(0,0,Color.green); blackTexture.Apply(); GUI.DrawTexture(new Rect(50,20,power*2,20),...

View Article


Texture2D.Apply Optimiztion/Alternative

(Questions are at the bottom) This is in response/reference to another question I had that was closed: http://answers.unity3d.com/questions/436414/drawing-a-display-panel-with-textures.html I ended up...

View Article


All links in the prefab are broken when exported

I am currently working on a game project with about 15 other persons. We have a major problem that is really frustrating us and stops us from working on the important things. Since we are so many we...

View Article

Having trouble with wheel colliders. (IMMA NEWB)

Hi, Ive just begun a racing game Im making for school. I have a car model (A Shimmy model from Google sketchup)and currently Im having trouble setting the wheel colliders properly. When I attempt to...

View Article

Difference: yield WaitForFeconds() vs yield return new WaitForFeconds()

The question is simple. Regarding coroutines; what is the difference between using: "yield WaitForSeconds(x)" and using "yield return new WaitForSeconds(x)". The [documentation][1] uses the first one,...

View Article


How to prevent Unity3D file from Disassembly/Reverse Engineering eg. IDA Pro

Hi all, when using https://www.hex-rays.com/products/ida/index.shtml or similar Disassemblers, the Unity3D binary of the project can be disassembled. Development Build is not ticked, here's what Ida...

View Article

Door opening and closing script not working

I have this script attached to my door: var InRange : boolean = false; var PressA : boolean = false; var ThePlayer : Transform; var DoorClosed : boolean = true; var DoorOpen : boolean = false; function...

View Article

Does the quality settings remain when you move level?

So i found this script on the Unity docs: function OnGUI () { var names = QualitySettings.names; GUILayout.BeginVertical (); for (var i = 0; i < names.Length; i++) { if (GUILayout.Button (names[i]))...

View Article


Why GUI TEXT Move ?

Why GUI TEXT Move ? I test in notebook 15.6 inc ![alt text][1] I tet In PC 24 Inc ![alt text][2] [1]: /storage/temp/10600-dsf.jpg [2]: /storage/temp/10601-111.jpg How to fix gui text ? thank you

View Article


Is it possible to create a custom model preview in an Editor window akin to...

Hello all. I'm looking for a way to show a preview of a model in an Editor window. This preview will ideally be able to play an animation that I would drag on to the window. The only solution I can...

View Article

TornadoTwins MoveAround script not working

So I have the basic MoveAround script form TornadoTwins. I apply it to my character, and i do have a CharacterController, but when i play the game, i can't walk, i can only rotate, and it shows this in...

View Article

GetButtonDown not responding to Xbox 360 Button presses

Trying to map some Xbox 360 controls, not having much luck. I've made an "Interact" button inside of the input manager. I've been trying to create one for 360, one for PC controls. Code I am using to...

View Article

Renderer enable

Hey! I am trying to make an amount of gameobjects render when a boolean is true. Here is my code: if(buyTowerMenuUp == true){ towerPlace[] = GameObject.FindGameObjectsWithTag("TowerPlace"); for(var x =...

View Article


RPC call behaviour on own client

I was wondering if an RPC Call like this networkView.RPC("Method", RPCMode.All); gets called on my own client instantly before returning to the calling method? And does RPC generally wait for...

View Article

InvalidCastException with .net datatypes but not with UnityEngine.Object

The following returns the following error: Line 11: InvalidCastException: Cannot cast from source type to destination type. It works perfectly with anything that inherits from UnityEngine.Object. I...

View Article


My attack script is broken, please help.

Right, a bit of explaining for this first. Ok, so I was working on my game, and I had a short hiatus due to lots of school assignments. When I came back, I kept having the issue of "Internal Complier...

View Article

Function OnTriggerEnder (difficult JavaScript)

------- Ok hi all my code is below and i am stuck cause i cant define the object that enters the trigger zone ------ var MonsterBody : Transform; function OnTriggerEnter (other : Collider) { if...

View Article


Float seen as Object, help?

Hi, I have to make a script that choose the nearest object, but it doesn't work... Here is my code: ---------- #pragma strict var Senso : Transform; var Fushiko : Transform; var Yuki : Transform;...

View Article

How do I make a projectile arc and always hit a moving target?

Hi all I'm new to Unity as well as programming in C# (about 3 weeks in). I've been searching for over a week now and trying different things that I can think of to no avail. I'm making a tower defense...

View Article

BCE0019 Error

Hey guys, the problem is as above and is the following: 1. Assets/Scripts/Enemy.js(53,24): BCE0019: 'multiplier' is not a member of 'UnityEngine.GameObject'. 2. Assets/Scripts/Enemy.js(55,24): BCE0019:...

View Article
Browsing all 171066 articles
Browse latest View live


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