Windowed Unity program. Getting Color from Desktop.
Is there any way I can get a pixel color from the desktop? I'm wanting to create a unity program that can run in windowed mode (for dual screen computers) it can be set to the side and the user can...
View ArticleWWW get files name to a folder
Hi, how can I get the names of files in a folder? Now i use this: string[] files = Directory.GetFiles(url); But if I wanted to point to a folder online? Thanks
View ArticleDetermine which player pressed key
So basically what I have is a script attached to one of my UI elements, that is supposed to activate another UI menu while simultaneously deactivating the first person player when a key is pressed. The...
View ArticleI cant get response json from rest call in Unity
Hi all, I had a problem while using www class for rest calls. I wrote the following code. void Start () { WWW www = new WWW ("http://ip.jsontest.com/"); StartCoroutine(WaitForRequest (www)); } private...
View ArticleJoystick DPad axis to bool
Hello, I want to have a class in the inspector to debug those variables. I have problems on the get/set method in the declarisation section. Is there a way on how to set them at runtime without using...
View ArticleDecoratorDrawer javascript examples
Hey there, the [documentation for DecoratorDrawers][1] has no javascipt equivalent to the C# code. I'm having trouble translating this line: get { return ((ColorSpacer)attribute); } I've read that you...
View ArticleHow do I conditionally instantiate gameobject in a public class array?
i have a class called, [System.Serializable] public class EnemyInformation{ //inside are public variables like public int enemyID; public enemyName; } I created another script that inherits...
View ArticleGet y position from another game object and then set the value to a Text UI
How do you do this!? Sorry, I'm a newbie. More like noobie. Anyway, SITUATION: Player jumps up an endless vertical platform to stay above the ground. QUESTION: I want to state the distance of player...
View ArticleHow to get a Line Renderer startWidth / endWidth values ?
Hello, I'm shooting a laser as a Line Renderer and I would get its startWidth and its endWidth values in order to save them for later. Unfortunately, I saw that they only seem available to set, and not...
View ArticleThe use of {get;set;}
Could someone explain what this code below does and why haven't we used set; instead? private Material curMaterial; Material material { get { if (curMaterial == null) { curMaterial = new...
View ArticleAre there differences between initializing at start and at declaration part
What are the differences between private Rigidbody rb { get { return GetComponent (); } set { rb = value; } } and private Rigidbody rb; void Start () { rb = GetComponent(); } They do pretty much the...
View ArticleHow to GET and parse data from website?
I am new at this and I do not know how to get info from site and show it in UI. I have tried using plugins but do not know how to. I want to get the numbers showing on the site which are constantly...
View ArticleGet variables from an editor script through a regular script
Is there a way to get the variables in an editor script from a regular script? For example: public class ExampleEditor : Editor { float a = 5; } and then in another script I get the value of a. Thanks!
View Article[C#] StackOverflow when obtaining bool-state
Hey folks, so let me begin by shortly describing what I want to do, then let me introduce you to my problem. So w/o further ado: I want to re-make my old escape menu, I did back in the beginning of my...
View ArticleError CS0177 - "GameManager does not contain a definition for 'GetPlayer'...
I have been presented with this in my PlayerShoot Code. Error CS0117: 'GameManager' does not contain a definition for 'GetPlayer' (CS0117) (Assembly-CSharp), Here is my code, thanks for looking :)...
View ArticleGet keyframe values of animations via script
Hi, does anyone know if it's possible to get keyframe values of animations via script? ![alt text][1] For instance I want to get the value of the Rotation.Z that you can see in the image. Would that be...
View Articleif statement in a get function
So I'm working on a project with a camera where i have the camera but other team members don't so i have 2 different object groups 1 virtual and 1 that works with the camera. So I'm trying t make a...
View ArticleWhen i use Fixed Update rigidbody get null...i don't know why .help...
![alt text][1] [1]: /storage/temp/98272-fixedupdate-error.jpg
View ArticleDestroy on load/Properties Issue
So I have been trying and trying to resolve this issue. Basically the integer value for the color is assigned to theUI script in one scene and It is defiantly assigned. Next scene the Material changer...
View Article