Quantcast
Channel: Latest Questions by MibZ
Browsing all 30 articles
Browse latest View live

Checking if a variable is null gives a nullreference. Why?

EDIT: Before you stop reading and assume you know what I'm talking about, [look at this screenshot.][1] My question is not "which variable in this code is null?" so please stop answering that question....

View Article



How can I convert velocity/direction to Force?

Wasn't able to find a question related to this, sorry if it's been asked a million times. I have a GameObject that normally is controlled by Rigidbody physics that can be thrown, but before it is...

View Article

Runtime prefab instantiation issue

**Update**: I've been trying to figure this out for a few hours today, and I've discovered that if I create a new Spawner & Branch from the prefabs and press Play the velocity calculation doesn't...

View Article

DontDestroyOnLoad issue

In my menu scene I have an empty GameObject that uses DontDestroyOnLoad to maintain variables between scene loads, but every time the menu scene is loaded another copy of it is created and maintained....

View Article

Editor font changes randomly

I've only noticed it happen a few times, but occasionally the font in the Editor (Inspector, Console, Hierarchy, Project, etc. All visible text.) changes for no apparent reason and after an...

View Article


How can I check what levels are included in the build in code?

I have a text field on my main menu for loading levels quickly during build testing, but I would like to add a check so if the user types a level name incorrectly instead of throwing runtime errors and...

View Article

How can I check if a GameObject has a Mesh?

I have a level editor in which I want to add a highlight effect to the object actively being modified. All editable objects have '2D' models, so to do this I'm going to create a clone of the active...

View Article

Can I have a rigidbody continue to calculate physics while being dragged by...

**EDIT2:** I was having more difficulty than I should have getting this to work in my game so I set it aside for a while and came back to it and got it to work in 15 minutes. The solution that worked...

View Article


Image may be NSFW.
Clik here to view.

C4D Animation Import difficulties

EDIT: Added screenshot I wasn't able to find a similar question to this: I have a C4D project that has a 2.5D animated character in it and I'm trying to figure out how to correctly import it. The...

View Article


Implementing a hi-res font texture map

I wanted to improve the resolution of 3D text, so using a combination of the [SaveFontTexture][1] script and a [bitmap to SVG][2] converter I made a 4096 x 4096 SVG file, brought it into Photoshop, and...

View Article

Intellisense documents GetFile but the compiler can't find it.

**Update2**: Removing the third parameter of the Directory.GetFiles function allows it to work how I want, but it doesn't make any sense that part of it exists but part of it half exists. I'd still...

View Article

How does GUI.Toggle work?

I have a level editor with a test button that I want to change into a toggle button - I want it to turn on when pressed and stay on until pressed again. Currently I have a setup like this //In variable...

View Article

Texture colors not right, import settings don't seem to fix

Some textures I've imported to my project show up correctly and others get distorted, changing the compression and color settings don't fix the problem, in the screenshot you can see a preview window...

View Article


How to convert pixel/UV coordinates to World Space?

I know it is possible to get pixel/uv coordinates from a raycasthit, but is there a way to find the world space position of a specific texture coordinate?

View Article

Changing texture import settings during runtime

I'm working on a painting game that has to copy texture files during runtime, but I'm running into problems getting everything to work as desired. After a lot of goofing around with all kinds of...

View Article


Checking if a variable is null gives a nullreference. Why?

EDIT: Before you stop reading and assume you know what I'm talking about, [look at this screenshot.][1] My question is not "which variable in this code is null?" so please stop answering that question....

View Article

How can I convert velocity/direction to Force?

Wasn't able to find a question related to this, sorry if it's been asked a million times. I have a GameObject that normally is controlled by Rigidbody physics that can be thrown, but before it is...

View Article


Runtime prefab instantiation issue

**Update**: I've been trying to figure this out for a few hours today, and I've discovered that if I create a new Spawner & Branch from the prefabs and press Play the velocity calculation doesn't...

View Article

DontDestroyOnLoad issue

In my menu scene I have an empty GameObject that uses DontDestroyOnLoad to maintain variables between scene loads, but every time the menu scene is loaded another copy of it is created and maintained....

View Article

Editor font changes randomly

I've only noticed it happen a few times, but occasionally the font in the Editor (Inspector, Console, Hierarchy, Project, etc. All visible text.) changes for no apparent reason and after an...

View Article
Browsing all 30 articles
Browse latest View live




Latest Images

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