Quantcast
Channel: Latest Questions by Lockstep
Browsing latest articles
Browse All 29 View Live

Editor freezes while playing audio loop.

Hi there. Recenty my unity editor started crashing. It freezes kompletely and I need to use the task manager to terminate it. It happens during testing my scene at random points and more frequent when...

View Article



Coroutine does not stop when having a coroutine inside.

Inside of my combat logic for my AI I use coroutines to time the behaviour. Basically I start a random coroutine containing one behaviour, wait, then stop the coroutine and repeat. However the stop...

View Article

Weird execution order when instaniating a gameObject with too many children

Hello. I wanted to create a gun which shoots multiple projectiles at once in a fan pattern. To save Instantiate calls, instead of instantiating every single projectile I rather instantiated one...

View Article

GUI.Button registers click before appearing

Hello. The problem lies inside of my pause menu. The timescale is set to 0 and a couple of GUI.Buttons are displayed. When clicking the "Instructions"-button the Buttons disappear and the instructions...

View Article

How do I sitelock a game?

When I was learning about the various kinds of sponsorships, I found out, that some licences require sitelocking the game to the sponsor's page. First I thought it would work with something like var...

View Article


Mecanim animator. Set speed of a single clip.

Hi. I've just started working with the mecanim animation system. I use it to animate my player character. It also has a run animation. The speed of my character changes during the game thus i want to...

View Article

"Simple State Saving" problem.

Hello. I've downloaded a small script for saving and loading data using xml serialization and playerprefs ([Simple State Saving][1]; sourcecode below). I wanted to try it out on a very simple test but...

View Article

GUIContent constructor does not work inside of GUI.Label

Hi. A question about generall understanding what's going on: I wanted to use a GUI.Label with a GUIContent just like in the reference: GUI.Label(someRect, GUIContent(someImage, someString)); However it...

View Article


Controll squeeze of rigidbody between static collider and kinematic rigidbody.

Hi. Is there a way to detect and controll if a rigidbody is beeing squeeze between a static collider and a kinematic rigidbody? This is my setup: I got a nonkinematic rigidbody as player. It lives...

View Article


Destroy gameObject when array is resized.

Hi. I'm working on a waypoint system. I want to add and remove waypoints dynamically in the editor using an array. Creating new points is quite easy using: if(list[i] == null) list[i] = new...

View Article

Wierd null reference exeption in constructor.

Hi. I'm trying to create an array of all available weapons and buffs. Since they are for reference only I made them static. The weapons are meant to carry a list of buffs in them. Those are applied in...

View Article

Stop physics without Time.timeScale

Hi. I'm looking for a cheap way for stopping the physic simulation. In my game you basically roll around a ball using physics. When the ball hits the finish, I want the ball and every other rigidbody...

View Article

2 problems with serialization of a generic list of a custom class

Hi. I have a serious problem with the serialization of a list of my custom class (LevelInfo) inside of the container class (Information) I want to serialize. I'm using the [simple state saving][1]...

View Article


Open a link without popup-blocker

Hi. I want to create a button which opens a link to a new webpage. Currently I use the following inside of a `OnMouseDown` method: Application.ExternalEval("window.open('" + url + "','_blank')");...

View Article

Dropdown OnValueChanged no dynamic Value

Hello, I have trouble withe the UI Dropdown. It seems like I can't pass the selected value to the OnValueChanged Event. I tried adding a reference to a method which takes exactly one int but I am not...

View Article

Browsing latest articles
Browse All 29 View Live




Latest Images