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

Unity-Android Plugin (Black Screen)

I'm making a unity plugin for android. When I run my application on native, it runs perfectly. But when i call the same function from unity, it makes the background black and unity scene (by default in...

View Article


How to play Streaming video in Android device ?

Hi, i have to play a streaming video in my unity application with url. how can i play ? can anyone help to me ? is there any sample tutorial or samples ? Thank you

View Article


How do I soften the edges of a transparent Plane texture

I use transparent Planes in my scene. Each Plane has a transparent texture applied to it with the built-in shader **Transparent/Cutout/Diffuse**. Here's the properties of the material: ![alt text][1]...

View Article

Make a RPM Display For my Car

I am not that good at coding...so keep it simple but I have a simple car in my project. I want to add an onscreen RPM display to make my game better. How do i do this. ______________ This is the code...

View Article

Help with JSON creation and parsing in Unity script

Hey people, I am creating [this][1] kind of application. Want to store entire Application data and Game Object Data in JSON OR if you guys can suggest some other way around to store this values till...

View Article


Raycast not reporting what it hit

The issue, I believe, rests on line 46 of my code. I raycast out, and in this version of the code: using System.Collections; public class FPscript : MonoBehaviour { //public GameObject untitled; float...

View Article

List empties itself

I'm initializing a prefab with a script from another class. The initialize function assigns all the variables values. They all work except for list, list seems to empty itself somewhere in the code....

View Article

Why is my animated with Mecanim character (enemy) not visible in game (play)...

Hi! I'm an experienced game developer and all problems I can solve, but I can't understand why my animated (with Mecanim) characters (enemies) sometimes aren't visible in game(play) mode. I can do...

View Article


My Car is really slippery, How do I stop it?

I have a car in my project but it is really "slippery" and it is very easy to oversteer. Here is my script, what can i change? // ----------- CAR TUTORIAL SAMPLE PROJECT, ? Andrew Gotow 2009...

View Article


How to call for the nearest player or enemy to an object?

Hey all, Just working on a MOBA game and I have a tower that I'm trying to make look at the minions(creeps) or the Player but I keep getting a few errors > Assets/Scripts/TowerScript.cs(76,24):...

View Article

How can I import morph data in unity and link it with text box in unity

I have made different head sizes in 3D max, like head of size 54 cm to 59 cm and i have made a head as my base head and linked all the heads with the base head through morphing in 3D max. I want to...

View Article

2d platformer combat system

I'm making a 2d platformer and I have a character that has a sword. I want to be able to have the enemy hit you when he collides with you and you take health from him when he collides with the sword....

View Article

Editing code in debug mode?

I just watched [this][1] video. I don't know how, but he seems to be able to edit the game's code while he's in debug mode! - Is this something standard when you code in Monodevelop? I never use...

View Article


Missions/Quests - Best Way?

Hello, I want to have a load of quests within my game (It's a free roam game) - a quest can be from "Walk to the shop and pick some apples up", to "Go visit your friend John", etc... Whats the best way...

View Article

Enemy Appear And Chase After We Go Into Trigger

Do you guys know how to make enemy appear and chase us after player go into trigger (area) Enemy AI script I'm using (attached to monster) This monster has an animation var target : Transform; var...

View Article


is there a way to use yield WaitforSeconds if update function ?

is there a way to use the "yield WaitforSeconds" in update fucntion ?? or i must use that in another function

View Article

Multiple objects have the same code, but they don't work the same way

So that's pretty much it. I'm just learning C# but I think this code *should* work, yet it does something weird. Here's the code. `public class MouseController : MonoBehaviour { private RaycastHit hit;...

View Article


triggering an event in another C# script

hi, this has probably been asked a **million** times however i cant seem to get it to work. I have two scripts. one event occurs in **script A** and should trigger another in **Script B**....

View Article

Finding GameObjects within a radius?

i want to find the gameobjects around my player. what i want to do is find all the gameobjects within a certain area around my player and activate them. i am working on an openworld game. please help.

View Article

Rival Car in racing game?

What i am trying to do is making a racing game.. but i cannot figure how to move the opponent car? i mean the car should move on the track automatically how to do that? can that be done by animation?...

View Article
Browsing all 171066 articles
Browse latest View live


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