Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

3rd Person Camera help (C#)

I'm trying to make a 3rd person camera that will move up towards the character instead of going through walls. The code I have works pretty well, except for one thing. I have invisible cubes around the...

View Article


How do i initialize only once for a scene?

hi guys, i have my level one scene, and it initialize some GUI on screen, and when i head over to level two scene, the GUI stays there, but if i go back to level one scene, it creates another GUI which...

View Article


C# list bug using addRange after call toString method only on unity ios

I found a strange behavior when using list addRange method after call the toString method; here is the test code: using UnityEngine; using System.Collections; using System.Collections.Generic; using...

View Article

How expensive is Overlapsphere than a few raycastings?

Hi All, That's the basic question, But if anyone has teh inclination to read teh background.. here it is.. My starting point is the 3rd person controller from 3dbuzz tutorials, with a lot of my own...

View Article

Parkour type game

I want to create a first person parkour game, but I have no clue how to do so, I've been messing with unityscript and many tutorial on youtube and such, but I want to make a game that is mine, not a...

View Article


My inventory system only picks up one item when there are several

I spent hours writing this Inventory script and I'm sure there are easier ways to do it. I'm using a trigger on both the player and the "bandage" item. it works flawlessly until I try to pick up...

View Article

AI pause and attack a player in c# (script included)

Hi all, Just need a little help understanding how I should be doing this. Currently, I have a prototype where I have a set of waypoints in my script for an AI object to move along. At some point when a...

View Article

Buy License after publish

Is it possible to make a game in unity free (android) sell it on the market and if the game succeeds in making some money (more than the max 100.00/per year with unity free) buy the license so i can...

View Article


Object following you?

I have a script: function Update(){ var targ = GameObject("Player"); transform.position = Vector3.MoveTowards(transform.position, targ.transform.position, .03); } But this only works for 5 seconds. it...

View Article


How do I render a scene's depth buffer when I have custom vertex shaders?

Hi, I have a Unity scene, and for some of my effects I'd like to create a depth buffer of my scene. I'd even like transparent objects to (optionally) write into this depth buffer. My main problem is...

View Article

Unity Animation Problem

After I exported animation to Maya as FBX file to Unity, my mesh always started from the last frame instead of first frame while the animation is not playing. Is it the problem with the export settings...

View Article

Can't play animations using multiple model files

I imported several fbx files 1. player.fbx (simple T pose with bat) 2. player@shot1.fbx (animation) 3. player@shot2.fbx (animation) In rig settings, I selected animation type - Legacy. When I drag a...

View Article

Can you affect a texture with another texture?

What I'm looking to do it to randomly place a white square someplace on a black texture, and where they overlap, have those pixels bumped up one step towards white in color. Is there a way to...

View Article


How to make a ball that can roll?

In my game, the player is a first person controller. The player can also place soccer balls on the ground. I want it so then when the first person controller collides with the soccer balls, they will...

View Article

Does Unity Web Player work for Windows 8?

I just want to know (my other one was destroyed)

View Article


Problem using system.directoryservices

I am trying to implement an user authentication using active directory. I have already pasted the DirectoryServices.dll found at C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0 but I can not...

View Article

Light Cookie problem

Hey I need some help with this problem, When ever i put a cookie into the slot where they are ment to be for a Spot light it dosent show the cookie, ive edited the cookie to be transparent but still...

View Article


What environment would you like to see be sell in the Unity Asset store?

I would love to make amazing and unique environment for the unity asset store. There's a lot of great environment there but I want to know what the people need and want! Asset characteristics that are...

View Article

How to implement a 3/4 perspective camera

I am trying to implement a camera that will give me a result like this. ![alt text][1] [1]: /storage/temp/13536-final-fantasy-iv-the-complete-collection-screenshots.jpg I am unsure what my rotations...

View Article

Is there any way to call OnLevelLoaded when loading a scene in editor?

Hey, I need to run some code when I open a scene in the editor. Is there anything similar to OnLevelLoaded that gets called when I do that? Or any workouround to do this would also be appreciated. Thanks.

View Article
Browsing all 171066 articles
Browse latest View live


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