Ragdoll Issues...
Right now I have a rigged model that has a character controller and AI script attached that basically say to follow the player. The plan is to have the enemy hovering like slightly above the ground,...
View ArticleTerrain shows black when running Scene
Hi, I'm just starting out with Unity and I'm sure this has a very simple answer but I'm stuck so I'd appreciate any help. I have a scene that contains a main camera, a directional light, a terrain and...
View ArticleOnCollisionExit2D Call does not happen
I have Search this up, but cant seem to find the fix i need. I have 2 GameObjects both with Rigidbody 2d, and Circle Collider 2D My Player's script have both OnCollisionEnter2D and Exit2D void...
View ArticleEditing Offset of Texture of Multi-Material Object
I need to change the offset of the Bumpmap every Frame. The object has 6 materials with assigned normalmaps. I always get this message: "NullReferenceException: Object reference not set to an instance...
View ArticleA* pathfinding script struggle
Hello, First of all, i wanna say thanks to all the people who take their time helping others who, like I, struggle with issues that may seem simple for others, but complicated for the the ones in...
View ArticleSystem.NullReferenceException
For simplicity's sake, let's say I have 3 C# scripts: Main, Globals, Data. All are classes within the same namespace, and one (Main) is attached to a gameobject. public class Main: ... byte[] tmp = new...
View ArticleFire Knockback
I can imagine this: ![alt text][1] [1]: /storage/temp/21006-knockback.png I just cannot code it in C#. I think the script should be on fire prefab and it should detect the charactercontroller collision...
View ArticleReturn animation to original position?
if (something happens){ animation.returntoOriginalState; } I want it to be like the animation never happened. I have a guy that hits slowly with a club. If the player isn't in the area, I would like...
View Articlehow traced position player in android ?
began making toy for android,was faced with the problem of the opponents(they can not find me).In i found problem . create skript for outputting and renewing coordinates. On computer everything is...
View ArticleUnity Frame Drop From Instantiating Prefab that has script
I have a prefab that I instantiate 10 seconds after loading the level. The Script is a generic mover script which as you can see will not run as default. Then I have a separate scrip to instantiate the...
View ArticleWhen to use OnCollisionEnter and OnTriggerStay and how to use rigidbody.AddForce
Hi Sorry for the long question title. I am trying to make a treadmill for a uni project. I want the treadmill/conveyor belt to move the player along its path and if the player tries to move with it...
View Articlehow to restart mecanim state animation or play it from random position [SOLVED]
we've been looking for the answer almost week and we found it and it's pretty simple, so we decided to share for those who are looking too :D there's no need for tricks with empty or duplicate state ...
View Articlechild object collides with an other object and makes the other object child...
Chances are you are wondering what kind of pot am i smoking, what color and what hydroponic quality, but its a real problen i stumbled uppon and its a little complex to explain. here is what i need it...
View ArticleHow to create a Texture2D from a sprite asset
I need to change the `sprite` property of a `SpriteRenderer` component programmatically. The `Sprite.Create()` function takes a `Texture2D` object, which is the sprite image. I have a sprite sheet that...
View ArticleFor my multiplayer FPS, the 3rd person character is not moving
I'm currently working on a multiplayer fps which is still in early stages of development. One issue is that the 3rd person character won't move with the player and just stays at the origin. I have the...
View ArticleSetting the value of a struct variable in C#
I know this doesnt directly deal with unity but im not sure where else i would ask it so ill give it try here. Im creating a game in which there are multiple types of weapons. Each weapon is defined at...
View Article[Physics] Rigidbody 2 Point Rope Swing without hinge
Hi can someone please tell me how can i make a rigid body swing without hinge joints or any joint, a physics equation or a bit of code or even an explanation of how the current hinge system works so I...
View Articlefinding objects with same cubemap in shader?
I am working on my personal cubemap system and I got now the problem that I have rooms with lights that I can turn off and on. so I would need 2 cubemaps for light on and one for lights off. I want to...
View ArticleiOS Unity Audio stopping background music
iOS Unity Audio stopping background music player when launching game. Is there a way to set the Unity audio session to ambient (to allow mixing of sounds)?
View ArticleAudio filters with multiple AudioSources
Can anyone confirm for me that the behavior of multiple AudioSources and AudioFilters (anything making use of OnAudioFilterRead() ) is as follows: If you have more than one AudioSource, only one of the...
View Article