Quantcast
Channel: Answers by "Bampf"
Browsing all 60 articles
Browse latest View live

Answer by Bampf

The overload of TimeSpan.ToString that takes a format string as an argument was not added until .NET 4.0. Unity's current version of Mono is effectively .NET 3.5.

View Article



Answer by Bampf

You can elect not to worry about this, as it has no bearing on what will happen when you submit your app to the App Store. However, if you are going to be distributing the test build to beta testers...

View Article

Answer by Bampf

Try either this.nameorthis.GetType()Note: that this won't be exactly the script's name if the name had spaces in it. Spaces will be removed. What you will get instead is the type-name of the component...

View Article

Answer by Bampf

If you click on the error in the Console window, it should take you to the line where the error occurred. My guess would be that either Player or controller aren't set to anything. You can set them in...

View Article

Answer by Bampf

SphereCast is like raycasting, but instead of casting a single ray it casts a sphere. So this would be more useful for, say, detecting if a thick beam hits something, or if a ball will hit anything as...

View Article


Answer by Bampf

The sliding is caused by the rigidbody, and from a physics point of view it makes some sense. When you are on a slope you slide down it. When the player moves forward or backward it's not noticeable...

View Article

Answer by Bampf

Have you added any DLLs or editor scripts? Those are often the culprit. For example:http://answers.unity3d.com/questions/22748/build-fails-in-unity-3-0

View Article

Answer by Bampf

You didn't say what exactly is happening, but odds are you are having the common problem of not getting notified of any collisions. If you search Answers for OnCollision and OnTrigger you can see how...

View Article


Answer by Bampf

Other elements will still get mouse-down events. They have to somehow know not to respond to events when they aren't in front. 1) You can do that in your event script. The object will get the event,...

View Article


Answer by Bampf

Your script works for me in Unity 3.2. (The click behavior is a little strange in my test scene, but I haven't investigated and that's not what you were asking about.)FYI I googled your error and I...

View Article

Answer by Bampf

Since it is a method (not a static method) of GameObject, you probably need to specify an object. Instead of Destroy(gameObj); Try: gameObj.Destroy(gameObj); // inside static function, need a...

View Article

Answer by Bampf

I don't work in Boo, but I think you are missing parenthesis when you try to call FindClosestPlacard. target = FindClosestPlacard; // sets target to be a function? target = FindClosestPlacard(); // try...

View Article

Answer by Bampf

They are implemented as properties, not methods. Did you by chance include parenthesis in your call? var dt = DateTime.Now(); // wrong var dt = DateTime.Now;

View Article


Answer by Bampf

1. The collider should have a [Physic Material][1] on it. By adjusting or replacing that material, you should be able to make the ground more slippery for the player. 2. If you don't want it to be more...

View Article

Answer by Bampf

camera3 is declared as an array but with nothing in it. You don't show any code that initializes it either. So I can only assume that its empty. You could make it public, then in the Inspector set it...

View Article


Answer by Bampf

Tranquility's [link he posted in the comments][1] contains an easy solution. Just keep an array of the disabled objects that you might want to find again. In the given code the author was bringing back...

View Article

Answer by Bampf

This has been asked many times already. Search for "circular progress" or "circular health".

View Article


Answer by Bampf

You can indeed have a collider with no rigidbody. If there's no rigidbody then Unity assumes the object is *static*, non-moving. Unity does not bother testing for collisions BETWEEN static objects. As...

View Article

Answer by Bampf

You are constructing ModifyingAttribute's with two arguments, a primary attribute (whatever that is) and a float. The compiler is telling you that it expects fewer or more arguments. new...

View Article

Answer by Bampf

Short answer: yes. Overview of the license differences can be found here: http://unity3d.com/unity/licenses You can even own a business and use Unity (non-Pro), as long as your turnover is less than...

View Article
Browsing all 60 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>