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

Split BMP into smaller Textures using Unity

I am currently trying to split a larger BMP (304x160) into smaller Bmp files (16x16) using C# script in unity. Unfortunately I cannot add the larger BMP file to the Project but must load it using...

View Article


Need Help With a NullReference Exception

Ok, I am following the unity 3D tutorials from the official website, however I coding my own stuff as I go rather than just copying the code from the videos. The ideas is the following. I have a script...

View Article


changing variables of all instanced Gameobject

hey everyone, im currently creating a tower defence, the snag im into is that i want after each wave, the enemies level to increase along with all its stats, the thing is, how do i access all the...

View Article

Where should I start

I have no experience when it comes to real game design. The most I have ever done is simple text editing of config files, some very basic modding in "The Elder Scrolls Skyrim" and a messing around with...

View Article

Grouping variables in inspector with a serailized class not working

Hi I'm trying to organize my variables into groups by making a serialized class and then using them in another, but it gives me errors saying the variables I declared in the serialized class don't...

View Article


"Center On Children" programmatically

Hi, Is there a way to use the "Center On Children" command (found under the GameObject menu) from a C# script? I know I can figure out the centered position, and un-parent all children while I move the...

View Article

Invoke problem, can't manually reload

Hello, I'm making an FPS game, (right now just working on the player/gun, etc.) and I'm having a bit of a problem. I'm trying to make it so that the player can manually reload using the R key **but**...

View Article

Why do I have to explicitly cast my MovieTexture?

Shouldn't unity automatically know that the maintexture is a movietexture and allow access to Play()? It just seems a little clunky, but I'm by no means an expert programmer. Currently I have to use...

View Article


An object reference is required to access non-static member

Hey all, I know this question pops up a lot, but I'm fairly new to Unity and my issue is a bit odd. I've been following the animation section of the stealth tutorial for use for my own project. The...

View Article


First person controller help

I just loaded Unity to my new pc but when I go to insert a first person controller I get an error saying. Assets/Standard Assets/Character Controllers/Sources/Scripts/PlatformInputController.js(5,2):...

View Article

Unity Lags With Imported 3D Models

Hi, I have a project that is severely lagging from imported 3D models from Sketchup. Not only does the game lag but when I'm working on it in the Editor, everything else lags as well. When it...

View Article

Making a gameobject animate(?) towards player

What I'm trying to do is this. I have a page I want my player to collect. When he clicks the page, I want the page to move up to the character so that it floats in front of the camera so the person...

View Article

Move Object Along Ground Using Raycast

Hi, all! I have a character in a sidescroller/platformer. So the Z axis is not a problem here. When I press A or D, the character moves horizontally. This is great, until I come upon a ramp or a curve....

View Article


Rotating object with onscreen button

I'm using javascript. I want to rotate a car with an onscreen button. It's easy to to create a button, and easy to create a car. It's easy to even create a car that if clicked/pushed down will rotate....

View Article

Why does my game editing area stay blue?

Hi, im new to the Unity program.. I just downloaded it last night. And I was playing around, watching tutorials, and then I got out of the program, and back on today.. And now my game editing screen is...

View Article


Mac build clips screen edges despite resolutiuon selection

Hi, I'm building a game in-progress for someone else to play. I'm using 64bit Win7. I build for mac, and everything appears to go fine. When the mac build is run though, despite the resolution selected...

View Article

AI Ship Stuff

Hey everyone I have a ai for a enemy space ship thats needs help! I got it working where it follows the player but now want a function that moves away from the player… I tried the avoid() function part...

View Article


Drag Rigidbody

I consulted search engine after search engine, forum after forum. I just can't find a suitable answer to this question! Is there a script that I can use, which allows the player to drag a rigidbody...

View Article

Character stand straight

I've implemented a spell casting system where my character always faces where he is casting. This some times makes his y rotation change when he's casting upwards (flying enemy etc). I would like to...

View Article

How can I add more PhotonView ID's?

Hello, Currently the max ViewID's for the PhotonView Component is 1000, how can I raise this? I read something about changing the MAX_VIEW_IDS but I am not sure how to. 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>