Quantcast
Channel: Latest Questions by Z0hann
Browsing all 40 articles
Browse latest View live

Instance of a class, adding it to a List

Hello ! I'm new to unity, but not that new to C# and I want to ask a really average and regular question which I don't know how to search after. I made a class called ConsumableItem.cs. using...

View Article



Unity 5.0 buggy shadows

Hey there! I've recently switched from Unity 4.xx to Unity 5.0, therefore I had to update my project as well and everything works fine except for the shadows. It used to look okay even if it was turned...

View Article

Minimap rotating nodes

Hey there ! I'm working on a minimap system and I'm stuck at a point. My minimap is working fine, but I'd like to improve it by rotating the nodes, which are displayed on the map. Here's what I've done...

View Article

place 8 objects around a target gameObject in a circle ( like a compass )

Hey there ! I'm trying to instantiate 8 different gameobjects around my character, but I don't really know the math behind it, to do it with Sin or Asin. First I was trying to do a for cycle from 1-8,...

View Article

Lock rotation axis Y for a following target

Hey there ! I'm working on a follow script, which is working fine, but I don't want my following character to change it's Y axis while going down slopes and hills, only to change the X and Z axises....

View Article


Barrel rotation Y, not working well with rigidbody.

Basically I have a barrel with a rigidbody and a sphere collider attached to it. What I'd like to achieve is, when the barrel moves forward, it rotates around the Z axis as a barrel would in real life....

View Article

Why does my rigidbody.AddTorque gets "limited" ?

I'm working with a RigidyBody attached to a barrel with a sphere collider, and using my movement script which is like this: using UnityEngine; using System.Collections; public class Movement :...

View Article

File.ReadAllBytes does not work on mac ?

I'm simply trying to take a screenshot then load it in a byte array, but I get this error:> `error CS0117: 'System.IO.File' does not contain a definition for 'ReadAllBytes' ` any workarounds to make...

View Article


Application.CaptureScreenshot() is not fast enough

Hey there ! I'm making a menu where I use a screenshot from the game whenever the player opens it. My problem is that Application.CaptureScreenshot() is not fast enough to capture the screenshot then...

View Article


MonoDevelop indendation problems.

So basicaly after updating to Unity 5.3 and to MonoDevelop 5.9, I've started having problems with MonoDevelop's auto and/or smart indendation. After copying anything to anywhere it always added...

View Article

Unity 5.3.5 lightning

I'm working on a game and I've got some issues with lightning passing through several walls. I'm not so sure why this occurs, is it because of something with the model or is it because that's how Unity...

View Article

Prodecurally generated gradient transparent shadow

Hey there! I'm trying to make a shadow for my game but somehow none of the shaders are seem to be working for what I need.. Here is what I get with a gradient texture and with an Unlit/Transparent...

View Article

Instance of a class, adding it to a List

Hello ! I'm new to unity, but not that new to C# and I want to ask a really average and regular question which I don't know how to search after. I made a class called ConsumableItem.cs. using...

View Article


Unity 5.0 buggy shadows

Hey there! I've recently switched from Unity 4.xx to Unity 5.0, therefore I had to update my project as well and everything works fine except for the shadows. It used to look okay even if it was turned...

View Article

Minimap rotating nodes

Hey there ! I'm working on a minimap system and I'm stuck at a point. My minimap is working fine, but I'd like to improve it by rotating the nodes, which are displayed on the map. Here's what I've done...

View Article


place 8 objects around a target gameObject in a circle ( like a compass )

Hey there ! I'm trying to instantiate 8 different gameobjects around my character, but I don't really know the math behind it, to do it with Sin or Asin. First I was trying to do a for cycle from 1-8,...

View Article

Lock rotation axis Y for a following target

Hey there ! I'm working on a follow script, which is working fine, but I don't want my following character to change it's Y axis while going down slopes and hills, only to change the X and Z axises....

View Article


Barrel rotation Y, not working well with rigidbody.

Basically I have a barrel with a rigidbody and a sphere collider attached to it. What I'd like to achieve is, when the barrel moves forward, it rotates around the Z axis as a barrel would in real life....

View Article

Why does my rigidbody.AddTorque gets "limited" ?

I'm working with a RigidyBody attached to a barrel with a sphere collider, and using my movement script which is like this: using UnityEngine; using System.Collections; public class Movement :...

View Article

File.ReadAllBytes does not work on mac ?

I'm simply trying to take a screenshot then load it in a byte array, but I get this error:> `error CS0117: 'System.IO.File' does not contain a definition for 'ReadAllBytes' ` any workarounds to make...

View Article
Browsing all 40 articles
Browse latest View live




Latest Images