Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

-1
votes
1answer
14 views

What is this Mono Behavior in the animator?

I'm looking through the 3D Game Kit from the asset store to accustom myself with the animator, and I'm just wondering what this is referring to. I was looking into controlling MonoBehaviors through ...
0
votes
0answers
12 views

Oculus Headset detached while oculus attached with the pc [on hold]

I am working on the Oculus project, The player character for my simulation in Unity. in which I have firstperson controller, I have created game object of player in which I put FPCamera as a child ...
0
votes
0answers
23 views

Performant Fog-of-War With Sight Blocking in Unity

In games like Command & Conquer or Age of Empires, players can't see all of the map. Terrain and enemies are revealed only when the player has soldiers nearby. As I understand it, the most ...
0
votes
0answers
10 views

Adding large 3d models into Unity

I have a 3d model of a restraunt with several characters in it probably over a hundred objects. Whenever I try to import it into Unity Unity just loads forever until I force close it. How do you ...
0
votes
0answers
7 views

Unity working with Async and Await in Firebase

I'm implementing a little game with Unity which use firebase services. I had a little problem with Firebase RealtimeDataBase. I have a method "UpdateScoreAsync", this method publish the new player's ...
0
votes
0answers
10 views

Unity2D - Generate positions within a sprite outline or phsyics shape

I have a sprite in unity which has it's custom outline and physics shape setup in the sprite editor, I would now like to access this info at runtime and generate objects around the surface of the ...
0
votes
0answers
6 views

Issue challenge using Google Play Game on Unity

I am trying to figure out how to use Google Play Game multi-player in order to allow players to challenge friends. This is no a turn-based game like chess etc. Each one plays their own game and the ...
0
votes
0answers
21 views

All time high score less than week's high score in Google Play Game

My Unity app uses the Unity Play Game plugin. I am having problems with the leaderboard. For some reason the high score for "This week" is higher than the "All time". This is the code I use to ...
0
votes
0answers
12 views

Creating an animation for materials in code (Unity)

I have a function where you click on an object and it changes the color and emission of a specific material, every object has multiple materials with different order. ...
0
votes
0answers
21 views

Why I'm getting sometimes exception null on Edge.cs in the editor?

I have windows 10 and using unity version 2018.1.6f1 Personal I have this script in the editor folder: ...
0
votes
0answers
18 views

How to render 3d objects over uGUI

I have scene with 3d objects but need uGUI as background. is this possible ?
0
votes
1answer
17 views

I can add event animation but I can't add keyframe?

I am trying to add animation to my UI panel but the problem is I can't add a keyframe to my animation (the button is grayed out). But I can add event animation (the button is not grayed out). Here ...
0
votes
1answer
46 views

Unity: How do I only show parts of objects that overlap [2D]

I'm working on a 2D Unity project where the player can only see objects in their field of view. I have successfully created a mesh that overlaps anything that would be in the player's field of view, ...
0
votes
2answers
34 views

How to Make Snaky Inchworm Motion With Armature Staying Upright

I have a series of connected bones in a straight line. I want to be able to rotate each bone vertically and/or horizontally so that it can slither and arch randomly kinda like a snake mixed with an ...
0
votes
1answer
7 views

Unity Rotations Not Following Local Nor Global Axis?

In the gif below, you can see that rotating on X moves all 3 axis including the X axis. It's possible it's rotating on the global X rather than local X (hard to tell). But Y looks more like it's ...
0
votes
0answers
7 views

Problem with Unity APK Build : Default Activity (Android)

There was a project developed in Unity 4.5. I successfully updated it to Unity 2018.2.3f1 version without any error. Runs perfectly in Editor. When I create an APK (internal). I just get this screen ...
1
vote
0answers
29 views

Realistic 2D air friction in unity

I want to make an evolution games similar to this old games that was generating cars. Except I want it to be more realistic. So I want air friction to impact the speed of my cars, but how do I do ...
0
votes
0answers
18 views

Tetris like rotation with a list of points

I have a list of points that I want to rotate around the origin by 90, 180 or 270 degrees. This list can be an arbitrary shape such as: ...
0
votes
0answers
7 views

Physics.IgnoreCollision not working right after invoked

When invoking Physics.IgnoreCollision in Unity, it seems work but it still have collision detection right after creation. I have this issue with ejecting empty case after gun fire, it's spawning ...
0
votes
1answer
15 views

Difference between Unity's Renderer.sharedMaterial and Renderer.sharedMaterials

What are the difference between Renderer.sharedMaterial and Renderer.sharedMaterials in Unity?
0
votes
1answer
19 views

Sync a file across multiple devices

How can a file be synced across multiple devices? I am able to store the data locally using binary serialization, but the user should have the ability to access it on any device at any time. Is this ...
0
votes
1answer
37 views

Are constantly growing (in dimensional size) GameObjects a problem?

It's possible the following is fundamental to Unity, and not a problem? I am using an example of a WheelJoint2D/Car from the Ray Wenderlich tutorials. Note from the pic below, the top level game ...
0
votes
0answers
26 views

Why is my menu highlighting script/animation running so slow?

Alright, so bear with me as I have only been using Unity/C# for a month or so. I am currently attempting to make my own menu system for a 2D RPG, and have created a system where three options pop up ...
0
votes
0answers
24 views

unity camera collision completely illiminate clipping

Hi I'm trying to do a basic Camera Collision in unity, for convenience, here's the entire script (I actually got most of it from someone else who wrote the comments, if that's necessary to know): ///...
1
vote
1answer
62 views

Convert Canvas Space point to local space of a rotated rect?

I got a quite tricky problem: I have my mouse position and my rectangle position in canvas space(screen space but with adjusted scaling). Now I want my mouse position converted to local space of the ...
0
votes
3answers
40 views

Public value null after assigning it from a different script

Hello I am a beginner in Unity and still currently exploring with scripts. So I ran into a problem. In FetchAndAssign.cs Script ...
0
votes
0answers
30 views

How to distinguish the server and the client

As I understand it, when a player in UNET hosts, he has 2 threads. One of them is a server, and the other is a client. But the problem is that in all two threads the variables isServer and isClient ...
0
votes
2answers
37 views

How should I store and load structures for 2d tile based game?

I am working on structure generation for my 2d tile based game. Structures can be anything from houses, castles, dungeons, mazes etc. Structures are pre-defined, meaning I defined the width/height of ...
0
votes
0answers
7 views

Material.enableInstancing returns true even if there is no gpu instancing checkbox in Unity

I met a wired issue that I wrote a script for searching all custom shaders in a scene and finding out whether the gpu instancing checkbox has been toggled. However, some of them have no gpu instancing ...
0
votes
1answer
21 views

Accessing a UI Image that is a child of a GameObject?

I'm sure there is a very simple solution to this issue. I am creating a UI for a 2D RPG in Unity. I have a Canvas with a two GameObjects: DialogManager & MenuManager The Dialog Manager has a ...
0
votes
0answers
14 views

Unity not loading png created with external program at runtime

I'm trying to work out why the png files I am trying to load from streaming assets are only coming up as the ? error symbol, and having no luck. The files are png files created with an external ...
1
vote
0answers
35 views

Is it necessary to know some programming language before learning to use Unity [closed]

I had learnt a bit of Java programming in school...is there any other programming language that I should learn to be able to work using Unity?
0
votes
1answer
27 views

How can I detect if I move circular with my Gameobject?

I want to detect if my Gameobject (Vector3 Point) is moving circular. For that i thought its a good idea to safe the last 5 Points every 10 frames and make line-Vectors out of it. Then I thought I ...
0
votes
0answers
14 views

Unity: Custom Multiple Texture Shader

The built-in Unity Terrain offers a way to paint different textures onto it. As you can see here sand has been painted onto the main grass texture. I prefer to import Terrains as fbx files. However ...
0
votes
1answer
37 views

How to get the next line character to work in a self-typing dialog box?

With the help of a tutorial, I've created an almost successful dialog box that types itself out (just as older RPGs do, and some still do). The only problem is that I've wrapped the text so that if a ...
0
votes
0answers
18 views

Should I use Unity or iOS for a kids subscription video app that will have games in future? [closed]

I need to decide what platform to use for an iOS app that will allow parents to use in-app subscriptions to subscribe to videos and poems for their children (Kind of like Netflix for kids) but we plan ...
0
votes
1answer
31 views

Unity OnCollision2D not working

I'm new to Unity and C# (though I'm experienced in python) and I am trying to make a pong clone, I've spent ages googling and trying to fix this issue but for some reason my OnCollisionEnter2D won't ...
1
vote
0answers
26 views

Unity baked lighting blotchy and cubic

I've set every object in my scene to 'static' and the bake runs automatically, but the result is unusable: blotchy, blurred cubic lighting... Here are my lighting settings: What am I doing wrong? I'...
0
votes
0answers
24 views

Argument Exception: Value does not fall within the expected range in unity visual studio [closed]

i want to open my project solution with visual studio but i receive this error: ArgumentException: Value does not fall within the expected range and visual studio works sloppy and AutoComplete ...
0
votes
0answers
24 views

Unity3D: How to just center a mesh inside a character controller!

Hi I have a simple character mesh and it's parented to my character controller-invisible-capsule object and all the moving code is applied to the parent (if that's relevant), but the point Is I'm ...
2
votes
1answer
20 views

Get the XZ to the right of a rotated point?

I need to do this entirely with math, take a look at this picture: What I'm doing is building a path finder algorithm that basically looks 30 units ahead, raycasts a few times perpendicular to the ...
0
votes
1answer
18 views

Why I cant change the GUILayout.Button color to green when click on a button?

I used a break point and it's getting to the line: style.normal.textColor = Color.green; But not changing the color of the clicked button. And there are no any ...
1
vote
1answer
30 views

How to “amplify” a force and physic using AddForceAtPosition?

I have the object in the image. The red box is kinematic: when an object hit it , i set kinematic to false, so Unity apply normal physic. But I would like to apply also a force to the point ...
0
votes
2answers
29 views

How can I stop rigidbody velocity from being overridden?

I have two behaviors on my player. "Walk" and "Dodge". Individually they work as intended by altering the players Rigidbody.velocity. However trying to dodge while holding left or right will trigger "...
1
vote
1answer
34 views

prevent animation from moving the character

As stated in the question I've this problem: I'm using Unity and when playing an animation my character moves from point A to point B without my consent. Here's the code: ...
0
votes
1answer
50 views

Item functionality with database

So the game i'm making will have items with different functionality such as ammo boxes, med-packs, guns, food, water ect. My problem is i don't know where to put the code for the specific ...
1
vote
0answers
17 views

Emissive material from white texture

I have texture with black and white shapes. I would like that white parts are emissive and black parts are transparent/glass. How to make such material ?
0
votes
1answer
44 views

Unity block chunk generation pattern

I am trying to do something like Minecraft game in Unity. Currently I am trying to generate a chunk of blocks, given dimensions. I can successfully create a chunk of N x 0 x 0 sized chunk, but due to ...
2
votes
2answers
60 views

Timer as part of a condition

I am using a sensor as the input to my game. When a certain level of force is exerted on the sensor, for a certain amount of time, I want the next level to be reached. How would I do this? I have ...