Tagged Questions
Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.
0
votes
0answers
11 views
How to spawn an object in front of the player orbiting around a planet?
I am making the 3D game where player move around the Earth orbit in one direction and I wand to instantiate asteroids which will move to me on the same orbit as player but asteroids must instantiate ...
1
vote
0answers
7 views
Keep state in Unity editor without hitting serialization
In my game I have a MonoBehaviour WorldView that, when created at editor time, initializes a large dictionary. Later from a Editor WorldViewEditor I call WorldView.SetBlock() that tries to access this ...
0
votes
0answers
8 views
Bike rotation freeze rotation
Hello im making a bike game and need it to stay up (doing a wheelie) without gravity knocking it down ive tryed freezing the rotations and turning off gravity and it dosent work, so not sure how to do ...
0
votes
1answer
33 views
Unity - Proper use of threads with procedural generation
I have been working on a simple chunk based terrain generation system, with voxel octrees. The overall method works pretty well, but testing this system with large amounts of chunks completely freezes ...
0
votes
0answers
10 views
What events invalidate the Unity machine identification? [on hold]
I bought a new solid state drive, cloned the old one to the new using CloneDrive, removed the old drive and booted. Everything went well, but when I tried to start Unity I got this popup:
I am ...
-1
votes
0answers
10 views
fade away the fire while watering to it unity3d
i am a developer in unity3d.Now i am working on a fire accident project.
but at the time of watering towards fire iam getting some unclarity on that.
Bcz i want to fade away the fire while watering to ...
0
votes
1answer
20 views
How to draw arrows between bubbles
Hi EveryOne,
First of all thank you very much for Your Support. Your Valuable Suggestion really helped in Game Development. Now, i have another question:-
...
0
votes
0answers
8 views
I wanna rotate 2d Gameobject around its pivote point on touch over it [on hold]
have u any idea please share with me... i m trying to make a bow and arrow type game but I'm facing such problem, I'm trying to rotate the bow around its pivot point on touch .
0
votes
2answers
42 views
How to implement levels in unity
My game is very simple and runs on a single scene.
I would like to add different levels with different difficulties. Currently looking at 10-20 of those. What is the best way to implement this? A ...
0
votes
1answer
18 views
Unity .3ds file is purple
I imported a .3ds file from skethup and in the preview it shows it with the texture, but when I put it in the scene it shows it without the texture.
http://puu.sh/gyYSU/a09541420c.png
0
votes
1answer
17 views
Spawning moving text make it disappear overtime
I am trying to display a text when I click the letter 'R'. When the text appears, it should slowly slide down on the y axis only, slowly disappear over 4 seconds and get disabled.
I am not able to ...
0
votes
0answers
11 views
Unity5 how to move object when the button is on hold [on hold]
I use new Unity5 and I need to make a movement when I press down the button. What have I done:
I created new button (UI-Button)
I created function:
public void Move () {
transform.Translate ...
0
votes
1answer
31 views
Unity 5 missing Standard Assets
I have Unity 5 and when I make a new project, there are no assets that are usually there (Character Controller, Terrain, etc.). How do I fix that?
0
votes
0answers
19 views
NullReferenceException: Object reference not set to an instance of an object (But it is?) [on hold]
My game calls the Load method automatically at the moment, however every time I boot up the game i get the following message
"NullReferenceException: Object reference not set to an instance of an ...
0
votes
3answers
43 views
How to move an object to a position?
I'm trying to move an object to the coordinates 48.7, 51.07, 102.8, but it does not move. I did some test to make sure that "OnMouseDown" works, and it does, I think it could not be finding the object ...
0
votes
0answers
10 views
Making animated movie and embed in game in unity3d [on hold]
I want to make a 3D animated movie/video so that I can embed it after my game level made in Unity3D.
May anyone me the free software that I can use for this?
Thanks in advance.
0
votes
0answers
13 views
I want to swap textures on button click [duplicate]
public class Textswap : MonoBehaviour {
public Texture imageone;
public Texture imagetwo;
private Texture gametexture ;
void Update (){
if(Input.GetMouseButtonDown && gametexture ...
0
votes
1answer
12 views
InvokeRepeating stop working after reloading the level Unity3D JavaScript/UnityScript [on hold]
I am developing a game like fruit ninja. While developing the level I concluded that InvokeRepeating function stops working after level is reloaded.
If anybody could solved it out plz let me ...
1
vote
0answers
26 views
Security of Unity Rpc calls
Im just starting to code my game in unity and have been reading up that rpc calls are not validated and can run havoc on the server. For example a modified client can connect to your server and just ...
0
votes
1answer
44 views
How to stop 3D model from reflecting light like plastic
I was browsing SketchFab and found a 3D model I decided to try in Unity.
This is how the model looks in SketchFab's viewer:
When I put it in Unity, I used a Directional Light object:
As you can ...
-6
votes
0answers
59 views
C# Grid over terrain Unity3D? [on hold]
I'm trying to draw a grid over the terrain on Unity3D. I want it to follow the terrain contours near exact. The sqaures would also need to change colors when one square on the grid is clicked.I'm ...
0
votes
0answers
28 views
Memory management of byte arrays in Unity [on hold]
Most of the objects in my 2D game use sprites loaded from the bytes of files located in the file system. In other words, I don't rely on Unity to load/unload my sprites automatically.
So basically, I ...
0
votes
0answers
18 views
GameObject.Find(String); cannot be accessed with an instance reference? [on hold]
I'm at a game jam, and our coder bailed. I'm a UX designer with basic scripting skills but this is my first time using Unity so please bear with my ignorance.
We're trying to make a FPS game where ...
0
votes
0answers
24 views
Developing flash like game in android? [on hold]
I want to know how can i make a flash like game in android.which tools do i need to use for this.I have come across Starling but is there any other tools available for game development in android? I ...
0
votes
0answers
11 views
Textured/Vertex Colored Shader fallback
I have this simple ShaderLab shader that I use for particles, among other things (it's more complicated than this but I have omitted the unnecessary bits).
When I do not specify a texture, it falls ...
0
votes
0answers
23 views
Insert 3d text to the front face of a cube GameObject
I want to add a text to a cube in Unity.
I have a cube which has a 3d text as a child.
I am using the below javascript to write on the 3d text:
#pragma strict
function Start () {
}
var countdown : ...
0
votes
2answers
38 views
Jumping Script not working
So i have made a simple jump script with an misfiling boolean but it just does not work, it always stays on isFalling = true, here is my code:
public class PlayerController : MonoBehaviour {
...
0
votes
1answer
56 views
Only 1 side is rendered
I'm trying to get my .blend object into Unity but for some reason I see it differently in Unity than in Blender.
I was trying to solve the problem and someone said that I have to go to the edit mode, ...
1
vote
1answer
47 views
What's the scope of RPCs in unity?
I can define several RPCs in unity and I can call them via the networkView component. But it seems that it gets the RPC called regardless where it is defined.
So I was wondering to know how do the ...
1
vote
1answer
55 views
How To calculate camera boundaries
Is it possible to calculate the exact camera bounds? By this I mean the white lines that represent the camera area e.g the lines in the picture:
I'm using Camera.main.screenToWolrdCoordinates to ...
1
vote
2answers
86 views
Designing AI/NPC Task System
I am designing a game in Unity which has NPCs (Non-player controllers). I have worked out the path-finding but I need some help with how to implement tasks. I need the task system to be flexible and ...
0
votes
1answer
35 views
OnCollisionEnter2D incorrect contact point?
I am trying to shoot a bullet (rigidbody2d, boxcollider2d) to another enemy object (rigidbody2d, kinematic, circlecollider2d). I want the collision point between these two. When they collide, i want a ...
0
votes
0answers
23 views
Best Platform for Video Conferencing & In-Game Editing on Mobile Game? [on hold]
I would like to create a simple mobile game but it will have a small window for video conferencing/interaction as well as user being able to edit the text/pictures/video into the game too.
My ...
0
votes
1answer
58 views
How to show a popup with text when a game object is selected?
We're building an FPS game where you walk around a 3D environment and walk up to objects, click, and then a GUI message pops up.
Basically, I've got a character, walking around in 3D space, and is ...
0
votes
1answer
32 views
How do I properly apply root motion when using a blender exported FBX in Unity?
So I realize the common way for animations to be done is in-place with sliding feet, then control the animation playback to coincide with the character's feet, etc. However, given a scenario such as a ...
0
votes
1answer
44 views
Unity Collision Difficulties (How do I make a ground in unity with lots of pieces that doesn't have poor collision?)
So I'm working on this game that I came up with the idea for while watching the Unity Roll-a-ball tutorials. So it's probably important to note that I'm extremely new to game design and I don't have a ...
0
votes
1answer
51 views
2D particles with a perspective camera?
I'm working on a 2D pixel art Unity game. I have multiple layers of scrolling so I need to use a perspective camera, the problem is though that it seems to mess up using particles as when the screen ...
0
votes
1answer
37 views
Unity shaders: best way of handling data structures
I'm working on a shader in Unity that uses a Binary Tree to store some precomputed values, this binary tree should be available to the shaders and would ideally also be constructed on the graphics ...
0
votes
1answer
61 views
Memory game - texture on cards
I'm new with Unity and I'm working on recreating memory game. I found this sample: http://xtasestudios.com/unity/samples (select "Memory"). I decided for C#.
I've created my own card in Blender, ...
0
votes
0answers
10 views
texture2D wont render in webplayer Unity
I have an app that is pulling from a webcam and receiving from one on another computer. It takes the frames and does facial detection on them and draws a rectangle around it. This simple app works ...
0
votes
0answers
17 views
How to get camera to follow player, but stop when reaching end of screen? [duplicate]
I'm making a 2D game in Unity and I'm having issues with the camera.
I need the camera to stay within the boundaries of the level (the background sprite), but then follow the player around the level.
...
0
votes
1answer
41 views
Error when sending webrequest from Unity
I'm trying to submit a form made in unity via WebRequest, but i always get a 404 error. I even wrote a C# WinForm that also submit a form and it works. Do I need to do something specific in Unity for ...
1
vote
1answer
32 views
Custom shadowmapping in Unity not working properly
To experiment with a certain technique, I'm implementing my own shadow mapping in Unity. I'm using a camera for the light "view", which is rendered to a RenderTexture after being post-processed with ...
1
vote
1answer
46 views
Texture packer and 2d game sprite sheet creation
I am developing a game in Unity3D. I have a bunch of images which display the character animations. I decided to use texture packer to reduce the amount of individual images. I create one sprite sheet ...
0
votes
1answer
81 views
How do I destroy a Unity prefab when it goes off-screen?
I made an infinite path using prefab.Path moving in the negative x direction. I want to destroy the path clone once it goes offscreen.
My path move script is:
var Speed:float = 5;
var ...
0
votes
2answers
50 views
How to rotate a gameobject to the specific angle
I have tree model that is being rotating .After certain angle it should stop rotating.I have done a sample code.But the tree is not stopping.
void Update () {
//transform.Rotate ...
-1
votes
0answers
25 views
2D Animation Freezes Unity [closed]
I have a strange problem than I cant figure out. I have 3 animation states for my player - Idle, Walk and Shoot. I'm allowing the player to shoot twice and he can shoot again when his bullets either ...
2
votes
1answer
102 views
Why encode floats in RGBA?
Working on some effects that require depth (Z) data in Unity, I saw that these use a method to store the depth data encoded in the RGBA channels of a regular texture.
half4 frag(v2f i) : SV_Target
{
...
0
votes
0answers
14 views
unity pass texture from one camera to another for shader
I'm working on a system where I have to get a texture from one camera to another (render a -> render b) is there an easy way to do this?
For a simplified example this would be used to get the ...
-2
votes
0answers
60 views
Null Reference Exception Unity [closed]
I have a game where you shoot balls that are bouncing on screen. I have created one Script that controls the balls. In the beginning all the balls are created in the Awake method using instantiate and ...