Questions tagged [unity]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Converting heighmap coords to world coordinates, or Masking areas of terrain for object spawn systems

My terrain already exists, and has been painted. I'm trying to mask out areas of my terrain so I can "zone" object spawns. For example, I want to spawn branches and logs randomly on a beach over time ...
0
votes
0answers
11 views

Color bands over tile when scaling texture in shader

I want to have tiles with different sprites on the back. Initally I thought I will mix two textures together and then apply mixed texture to game object. I thought that should be easy, but google ...
0
votes
1answer
118 views
+50

How do I draw a world rectangle as a GUI

I would like to draw a perspective green rectangle that glows (=it constantly changes its alpha between 0 an 1). I already achieved this, but not as a GUI element, but as a real 3D object. In ...
0
votes
1answer
33 views

How do I create a single tile in Unity 2019+

I going through the "Ruby's Adventure: 2D Beginner" tutorial, chapter 4, section 3 with Unity 2019.11. In the tutorial you create a folder for tiles and you are then supposed to right-click in the ...
0
votes
1answer
39 views

Standard Unlit shader doesn't work?

I created a project to download and try out free Unity assets. I then transfer the assets I actually want to use to my actual project which uses the LWRP render pipline. I tried to get some particle ...
0
votes
3answers
49 views

How to use GameManager to get GameOver() from another script?

I'm trying to make a gameover-text show when the player is leaving the plane-area. In GameManager.cs I've written: ...
0
votes
2answers
24 views

Issue with Canvas Background?

I'm preparing a 2d game. I'm working with particles, the problem is my particle is displaying on the obstacle and also a problem with level text see the reference image: and the second issue is when ...
0
votes
2answers
30 views

Recursively find neighbors

I'm making a Bubble Shooter game in Unity. I came to the point where I can hit another bubble and it destroys all of its neighbors. Now I'm trying to use recursion to destroy all of its neighbors ...
0
votes
1answer
22 views

How can I adjust the direction of my rigidobody.velocity without stuttering?

Stuttery movement has been plaguing me for the whole development of this project. Some info on the game: It's a 2D, top-down space game, and you control a spaceship that can accelerate or rotate. If ...
0
votes
1answer
23 views

Does Unity animation event send a message to every object which owns it?

I made game objects A, B. And each has animator, and it has the same animation. And they are inherited class of Base class. I trigger animation on A object, and the animation has callback and invoke ...
1
vote
0answers
44 views

How can I cut a doorway through my wall at runtime?

I am working on a Unity project where I have 3 models: a stacked, rounded wall (think logs), a flat wall (think bricks), and a door. The door has an animation to open / close itself, and when it's ...
0
votes
1answer
22 views

Unity Error importing any video clip

When I try to import a video file to play in a VideoPlayer component, I get the following errors in the Console: ...
1
vote
0answers
37 views

how to make a seemingly endless backdrop in Unity

Potential solution at the bottom. I have a rocket which flies straight up, as it gets higher you can see the edge of the terrain. I want the rocket to eventually leave the atmosphere and then the ...
1
vote
1answer
57 views

How to use a sprite mask or shader to mask a text?

I'd like to know what I need to learn to apply a shader to achieve masking on the text. Here is my text object in-game, I'm using a sprite mask to mask the game objects on the card, they're all in ...
0
votes
0answers
29 views

The doors lock system is working fine but how can I avoid changing the colors all the time in the Update?

I want it to change the doors lock state but also the colors of the doors Red = locked Green = unlocked either in editor mode or in runtime. But if the method that change the doors colors is not ...
0
votes
0answers
14 views

Multi pass Surface - erro syntax

I'm trying to make a multiple pass using two [blending] for each one, but he accuses in one place, there is nothing, I don't understand why Parse error: syntax error, unexpected TOK_PASS, expecting ...
0
votes
0answers
34 views

Questions about Jrpg NPC events (Unity C#)

So, I'm trying to wrap my head around something. I've got my basic quest system up and running for my rpg style game. Right now I'm taking a look at NPC events and triggers that as I see it have two ...
0
votes
1answer
16 views

Exported shapekeys to unity don't play correctly (unity 2019 + blender 2.79)

Hopefully someone can shed some light on this I select all relevant parts of the mesh and armature etc and export to FBX 7.4 for use in Unity3d The model itself displays fine and so does the armature ...
3
votes
2answers
129 views

Is there a way to customize the Game-view Editor GUI?

I need to add a simple slider like scale slider in Game-view to change the timescale because I usually test my games by changing timescale.
0
votes
0answers
13 views

Unity 3D Google Play Services error when building for Android on API level 29

Unity 2019.2.11f1 has been giving me error when I select the API level 29 (Game does not build and while playing throws an error message mentioned bellow). I tried many Unity versions, updated Google ...
0
votes
1answer
26 views

Unity Unique Persistant GameObject ID

I was wondering if GetInstanceID() is persistant at each run? I intend to save/load gameobjects data by their ID....I needed a persistant ID
1
vote
1answer
41 views

Optimizing spawning 500 objects every 3 seconds

Using Object Pooling, assuming I'll like to spawn 500 cubes once every three seconds. How do I make it performance friendly? I need ideas, not the code itself.
0
votes
1answer
44 views

Avoid spawning Reverese words in word search game

I was trying to modify a project that I found on Github, but the problem of that game is the words of the game is spawning in reversely as the snapshot below. there were two classes that has been ...
0
votes
1answer
20 views

cursor cannot active and deactive when click ui

I have a player with a third person character controller component. i have a problem with the cursor lock it hide and cannot click the ui button. i already try some coding but error. SORRY Im very2 ...
0
votes
2answers
401 views

Can't submit facebook app for review

I'm trying to submit my app for review with publish_action. I keep getting the following error: "It looks like you haven't made any API requests to access content with the publish_actions permission ...
0
votes
1answer
21 views

How to make a new powerup reset the WaitForSeconds from previous powerup?

I'm making a game where the player is pushing objects outside a plane. Every round there's an additional ball (GameManager.cs): ...
0
votes
2answers
21 views

unity: input event consumed by image raycast target that is “under” a sprite with a 2D collider

I am having a hard time getting my UI to work. Basically I have a canvas with a UI image A that is the size of the screen. This image has raycast enabled and if effectively receiving inputs. Not in ...
0
votes
0answers
20 views

Unity change scene with button

I already understand how to do this but the problem i'm having is: When i go from "MainMenu" to "Level01" and then back the buttons lose there reference. What can i do to fix this? ...
3
votes
2answers
67 views

With gravity enabled, how do you move a RigidBody forwards at a specific speed?

I have a perfectly smooth cube on top of a perfectly smooth plane. I am applying a forward-force of 1 unit per second, using ...
0
votes
1answer
18 views

How to stop counting point when player dies (Destroy)

In my game, I'd like to stop counting points when the player's y is -4. When the pink and red balls fall off the Plane the player gets points. But it seems a bit strange to be able to collect points ...
0
votes
1answer
17 views

How to avoid game starting before start button is clicked?

I've made a game with a Title Screen (Canvas), and a Start Button attached to the Title Screen. Points, GameOver, Restart, and even the Start Button sort of works, but it's possible to play the game ...
1
vote
2answers
84 views

Access a clone of an instantiated object - not all the clones?

I am trying to access the object I instantiate - basically a prefab car instantiates cars (one after one) ..the problem that when try to move one .. they all move together ... what's the best way to ...
0
votes
0answers
8 views

UGUI canvas and NGUI panel overlap- set sorting order

I have a NGUI dropdown panel and a UGUI (Unity UI) panel. All are working fine but there is a small problem. When I open the NGUI dropdown panel meanwhile my GUI panel is also open, then NGUI dropdown ...
0
votes
1answer
18 views

Wwise: play specific audio clip without specific event (for dialogue)

Is it possible to play a specific audio object in Wwise without having a separate event for it? I'm implementing a dialogue system, and I have thousands of audio clips for dialogues, and making an ...
0
votes
1answer
89 views

Unity2D: Avoid attack animation looping during combo

I am trying to implement a combo system in my Unity project. I started with a coroutine to call a single attack and it goes relatively smoothly, the problem occurs when I try to modify said coroutine ...
0
votes
0answers
13 views

Communication Between Client and Seperate host Unity Unet

I building a realtime multiplayer game like a small quiz game that players can able to join the game and then quiz master who handling the host will launch the game. I need to that how to do this ...
0
votes
1answer
73 views

How can I simple use global or individual bool flag/s?

...
0
votes
2answers
44 views

Custom FPS Controller in Unity 5.6.6f2 not letting me look up or down

Due to the FPS Controller seeming to be broken in Unity now, I started using a custom one by kinifi on GitHub. For some reason though I can't look up or down. I removed the Main Camera so it should of ...
0
votes
1answer
17 views

'Edit Collider' exits after every adjustment

When I click the Edit Collider button I can see the collider's region and the handles to adjust it. After every adjustment (with the mouse) the collider outline disappears as Edit Collider finishes. ...
0
votes
1answer
63 views

Why are there weird texture artifacts in baked light which don't appear with realtime light?

This is the comparison of the same scene, realtime light vs baked light. What's am I wrong ? EDIT: In particular, also texture are low quality (see image 2). Why ?
0
votes
0answers
21 views

How to have a point light with no falloff in Unity 3D?

Does anyone know of a good strategy to make point lights with no falloff, eg. anything in the radius of the light will be 100% illumination while anything outside the radius will be 0% illumination. ...
0
votes
1answer
1k views

Marching Cubes Chunks

I'm doing some voxel based game, where I want to have voxel planets. I decided to use the marching cubes algorithm, and I successfully created a planet (even with noise) with the following density ...
0
votes
1answer
31 views

Tilting a game object left/right/forward/back with gyroscope, regardless of player's heading

I'm working on a mobile game in Unity and using the gyroscope to rotate an object along the x and y axes. ...
0
votes
1answer
40 views

Controlling a balance wheel using a Unity script

I am working on a small demonstration project with Unity like this (screenshot from footage below). I don't want to use Unity physics, which is too heavy. I plan to create a rotation function with ...
0
votes
0answers
17 views

How can I push a button with VR hands?

New programmer here. I am currently trying to create a sample game in Unity (2019.2.11f1) where I push a button using the VR hands of my Oculus Rift (the hands follow my controllers). I can't believe ...
1
vote
2answers
2k views

Something is preventing my NavMeshAgent from moving

I apologize for the vague title. I really wish I could ask something more specific, but I can't. I had my click-to-move script working fine with the NavMesh. I showed it to my colleague earlier today, ...
0
votes
0answers
31 views

How can I modify the transparency n the shader?

I'm learning how to use transparent surfaces. I am using a texture with black background, but any change in transparency is not showing, what I am doing wrong? Here is my shader code: ...
0
votes
0answers
24 views

3d physics framework/engine for simulating virtual creatures [closed]

I want to recreate this project. In order to do this, I need a 3d graphics + physics framework/software that contains the following features: It has Rigid body physics + joints + springs It is low ...
0
votes
1answer
39 views
0
votes
1answer
49 views

How to check for sprite collision without Unity's rigidbody? [closed]

I'm currently making a recreation of Missile Command, but the problem is that I'm not allowed to make use of Rigidbody functionalities in my specifications. While player missile explosion spawning is ...