Quantcast
Channel: Latest Questions by Larry-Dietz
Browsing latest articles
Browse All 23 View Live

Can Java scripts and C# scripts be mixed in a single project?

I am much more familiar with C# than Java, so a lot of things are easier for me to use C#. However, some things I find easier in Unity in Java.Can I create a C# script that exposes variables, and...

View Article



Another GUI question. HealthBar

I created two Texture2D objects. One which contains an empty "HealthBar" image, and one that contains a full "HealthBar" image. What I am trying to do is draw the empty bar using GUI.DrawTexture, then...

View Article

GUI Window background image.

I am trying to use a GUI window as part of an in game interface. I want to put an image as the background of the window, but cant seem to figure out how. I tried GUI.DrawTexture, thinking that would...

View Article

What key was pressed?

Is there any way to determine what key was pressed? Basically, what I want to do is this...if (Input.anyKeyDown) { Debug.Log(keypress); }where keypress is the key that was pressed. I am only interested...

View Article

Mouse events for object with character controller

I am trying to use OnMouseEnter and OnMouseExit in a script attached to an object with a character controller. This doesn't appear to work. I cannot add a collider to the object without losing the...

View Article


Trying to make a 2nd camera viewport follow a GUI.Window

Ok, this is probably NOT the best way to accomplish what I am trying, but it was the only thing I could come up with. What I am trying to do is show a Character window, as a GUI.Window. I want the...

View Article

Ragdoll pauses for a second when instantiating

I am trying to change my enemy into a ragdoll when it dies. This is working fine, however, when the ragdoll prefab instantiates, the model stands there in an akimbo position for about a second, then...

View Article

Newline problem in GUI.Box when text comes from database

I am having a string problem, that really doesn't make any sense to me. The following works as expected, including the newlines... string Text="This is\na Test"; GUI.Box(new Rect(DialogWindow), Text,...

View Article


Problem instantiating a prefab, and storing a reference to it.

I have the following code... GameObject go = Instantiate(Balloons[x],transform.position,transform.rotation) as GameObject; Debug.Log (go); The object get instantiated just fine, but the Debug.Log shows...

View Article


Strange occurrence with input

The following is being called from Update. What I expected to happen is that when a key press occurs, QueuedMove is set to the appropriate direction. Once the move timer hits 0, the move occurs. Then...

View Article

Question concerning moderation

I received the following in an email from the site... Hellium mentioned you in a comment on NullReferenceException: Object reference not set to an instance of an object on Unity Answers: @Larry-Dietz...

View Article

Determine which app store is targeted, from code

I am adding an "our other games" screen to my games. I would like to send people directly to the app store if they click on one of the buttons for one of the games. However, if they are playing on a...

View Article

Unsupported API warnings in Google Play Store

I am getting the following warnings in the pre-launch report from Google Play. I am at a loss as to how to correct these. Any help or recommendations is appreciated... Android compatibility We’ve...

View Article


Problem with rotating a gameobject

I am trying to get a gameobject to rotate at a specific point, without changing the pivot point. What I am trying to do is, in code, create an empty gameobject, parenting the object I want to rotate...

View Article
Browsing latest articles
Browse All 23 View Live




Latest Images