Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
0answers
12 views

Eerror:Win32Exception**: The specified module could not be found

I am trying to integrate Kafka in unity game and for this reason, I created a consumer client (Code given below). ...
0
votes
0answers
47 views

Unity: how to mimic the lighting of a mesh as seen in the editor view

I have a camera which shows a "bird's eye view" of a procedurally generated mesh like so: Currently in the editor view (right), the terrain looks exactly as I would like it to. However, in game (left)...
0
votes
1answer
26 views

Unity editor PropertyDrawer custom button

I has a PropertyDrawer, everything goes fine, except one feature: I can't figure out how to add button and I use checkbox instead ...
0
votes
0answers
22 views

Admob Don't Work [closed]

I'm trying to make Admob, but I get errors. What am I doing wrong and what do I need to do? Errors: ...
0
votes
0answers
19 views

Whats the minimal setup to create a quadrupeds physics creator for a simulation in Unity? [closed]

I have been looking around to create a simulation to run reinforcement learning algorithm on quadrupeds. Hearing how the Unity editor is the go to for researchers due to its ease of use and rapid ...
0
votes
0answers
66 views

How can I optimise my game and its game objects?

I have a 3D game in Unity and I use blender to design models for it. My game has a feature where if you click a button, an object is cloned. An example from my game is a tree that is cloned around 100 ...
0
votes
1answer
19 views

Synchronized non-local CharacterController's velocity is stuck at the last movement in Unity3D

I have CharacterControllers as players in my multiplayer scene, and they got NetworkTransforms attached, with ...
2
votes
0answers
22 views

What is causing a SIGSEGV in mono_class_vtable_full in Unity for Android?

I'm a developer of a mobile game, and we have Crashlytics in our game. For the latest release for Android, we are having crash reports with the following stack trace, for a number of players: ...
1
vote
1answer
28 views

Correctly get size from Canvas UI element on Unity

Normally when anchors are on the same position, we can use .sizeDelta or .rect.width/height from ...
0
votes
2answers
36 views

Is it possible to add a sprite to a joint?

I want to have a joint between two objects, but I also want to highlight to the user that these two objects are connected together. I am assuming this isn't the correct method, as a joint is just a ...
1
vote
0answers
13 views

Is there an established way to create a 2D XY NavMesh in Unity?

Specifically, one in the empty space between colliders, rather than on an XZ plane (more or less) over the surface of a collider? Specifically this is because I have a drone, in a current project, ...
1
vote
1answer
80 views

How to ease toward a rotation limit, instead of stopping abruptly?

I rotate my camera using a framerate-independent exponential ease-out blend like so: ...
0
votes
0answers
18 views

How to detect two finger rotation Unity c#

I am trying to achieve rotating an object when two fingers are rotated on the Sensel morph touchpad. ...
0
votes
0answers
29 views

How to Create a Blast of Liquid in Unity

I am making a small cartoon-ish fighting game, and one of the weapons is a Hot Coffee Sprayer, which is a shotgun style weapon. How do I create a thick blast of dark liquid to come from it, with a ...
1
vote
0answers
40 views

How to make an authoritative multiplayer game deterministic for all clients? [closed]

I'm starting to create a multiplayer online game, with an authoritative server. As it is, the clients send inputs to the server which do the simulation and then send back to clients the updated state. ...
0
votes
1answer
26 views

how do I move an object based on rotation of another object?

This question is related to my other question about camera rotation. I hope its acceptable to ask a second question. I cannot figure out the math of how to calculate moving the camera to stay behind ...
1
vote
1answer
57 views
+50

How to write a PBR Unlit Shader in Unity?

I have a REALLY specific case here: I have an Texture (a webcam), that is used by a shader to pickup a few x,y colors at the cordinates, and renders to a ...
0
votes
0answers
38 views

Season system Implementation system in unity

So I am planning on implementing a seasons system for a 2D top-down game. Each season will have a characteristic terrain feature e.g. summers will have patches of grass spread out .. which I wanna ...
1
vote
0answers
41 views

How do I make both the Standard Unity Sphere and Pro Builder Sphere behave the same way?

I recently got into Unity and have been developing a game with a co-worker. Long story short I was thinking about using Blender for the 3d models but found about ProBuilder and gave it a shot. Here's ...
1
vote
1answer
26 views

Add a tag in Unity editor in code

How to add a tag in editor? I am working on automatic asset generation and I would like to use tags for certain objects.
0
votes
0answers
13 views

Websocket client connection for Unity 3d

am looking for help to get usage of websocket client in unity3d. i have my business logic running in python which posts the msg in JSON format to port say 8080 using websocket server code written in ...
0
votes
0answers
31 views

Collision detection not working on some parts of mesh

Racing game with a single mesh to act as a collider for all the track sides. Recently revised the mesh and now it is behaving strangely. The player correctly collides (bounces off) some parts, on ...
2
votes
2answers
65 views

Set stats per tile in Unity

I was trying to implement a destructable tile like: ...
0
votes
0answers
27 views

How can I stop my character's velocity in only one direction?

I'm moving a character by setting its velocity. It works perfectly and stops how I want it to however when I'm moving forwards and sideways at the same time and I stop moving either sideways or ...
0
votes
0answers
15 views

How can I assign animation clips via editor script in Unity?

Everytime I update my mesh, and reimport my FBX, all of the references to my animations clips need to be reassigned in the animator. How can I assign them automatically in an editor script?
0
votes
1answer
23 views

Two scenes load at once instead of only 1, Unity

so with my game i have two scenes one is my menu one is the game but when i click play on unity instead of using the main menu camera it uses the game camera while still showing all my buttons, As ...
1
vote
1answer
39 views

unity - What's pixel of texture when there is no uv mapping?

Assume I have a model and I don't map the UV for this model and I just apply a texture for the model. I see that Unity will apply a single color to the model, something like this (I took the img from ...
1
vote
1answer
28 views

Unity editor, horizontal line in inspector

How to draw a horizontal line in the inspector like on the reference image? Kind of separation line.
-1
votes
1answer
59 views

How is this camera settling done?

For clarification: I don't need to know how to rotate the camera. What I'm asking instead is how the movement of the camera AFTER the mouse move is calculated (the "slow fade out"). I've tried a lot, ...
2
votes
3answers
524 views

Unity importing Blender models with different orientations

All the models apart from 'Jungle Tree' are facing right which is not a problem, because they still seem to work with my game. But how can I change the 'Jungle Tree' to face right like the other ...
0
votes
0answers
26 views

unity webgl keyboard input is not working

I have a page with unitywebgl and some other extra input controls like for number and name but the problem is, the other html input control are not getting input from keyboard. After searching i found ...
0
votes
2answers
108 views

My camera does not rotate around player in 3d open world

I want my camera to following behind the player at all times. When the player turns to the left, I would expect the camera would move behind the player while remaining focused on the player. My ...
1
vote
0answers
20 views

How can I solve the “Unable to find back camera” error?

I'm trying to run a script that will display video from my webcam on my computer, but when I run it the error unable to find back camera pops up. My webcam is ...
1
vote
1answer
18 views

Instantiating a GameObject at my desired position not working

I'm sure I am misunderstanding something about Unity vectors or something here. I am brand, brand new to Unity so this is part of the problem. I am trying to make a simple atomic model and I am ...
1
vote
1answer
45 views

Exclude a certain folder from Unity?

I work with a small team of three people, and we use the collaborate service within Unity to share our progress. One of the folders we have inside our Unity project is an "OffGame" folder, which ...
0
votes
1answer
26 views

Move camera around player while facing player

My player has the following hierarchy: Hero (GameObject) Model (child of "Hero", centered at 0-0-0) Camera (child of "Hero") The camera should be ...
1
vote
1answer
49 views

Unity: Non Power of 2 Textures

I have a texture that is 1024x900. Should I resize it in Photoshop to be 1024x1024 or leave it as it is? What about a texture sized 1000x900?
0
votes
1answer
46 views

How is this rotation done?

There is a video here that shows how the camera rotates around Leon. The camera rotates around Leon in a circle, this is not difficult, but I don't understand the timing logic. Once given a short ...
2
votes
1answer
77 views

How can the player select his weapon among many?

I'm working on the prototype of my game, I want one of the options to have a very large amount of weapons. I have searched for tutorials, but I have only found weapons changes where the weapons have ...
0
votes
0answers
11 views

Firewall rules for Unity analytics?

Are these still the servers? stats.unity3d.com config.uca.cloud.unity3d.com api.uca.cloud.unity3d.com Anyone have a link to a definitive, complete list?
0
votes
0answers
18 views

Why my mesh is flat and change position?

Befor Star: (It's basic cube) After Start: (It's must be Eye) Code: IngredientAsset: ...
0
votes
0answers
25 views

How to stop Unity Camera from operating when UI Canvas is active

I've got a camera which uses the locomotion asset from the store and follows the camera. I've made a UI with buttons on it which I wish to click but the camera is locked to the center, when I press ...
0
votes
0answers
8 views

Controls don't work when parent or target moves

I have a platform for catching a ball. Platform physics material has bounciness value of 2 which pushes ball twice high from compared to its original position. Camera and platform have scripts ...
1
vote
1answer
34 views

Save game statistic in simple method?

I wrote a script to save and load game statistic. It works fine. In this script, two levels have it own score and timer. So, I have to write level by level it own score and timer. The issue is if I ...
0
votes
1answer
31 views

Unet Syncing within AR Hololens

I am out of options. I have tried everything I could and no matter what I do, the Transforms don't sync up. I have had multiple solutions that worked in my test, non AR project, but once I put on the ...
0
votes
1answer
13 views

Unity SphereCast HitInfo Give me an interpolation of the normal surface?

I'm doing a SphereCast for a GroundCheck of a player. I have my Raycast hitInfo, and here in the picture at the left, I Debug.drawRay in black the direction of the hitInfo.normal every frame It seems ...
2
votes
1answer
87 views
+50

Is it possible to apply a texture to a 2D-sprite in unity 2-d?

I want to take an (animated) 2-d sprite and apply a texture to it. Basically, I want every non-transparent pixel to be covered by the texture (color is disregarded). I understand I can probably ...
3
votes
1answer
104 views

How to move bezier curve points along circle to form a symmetric curve at center

From the image below, A is an open bezier curve with it's points positioned to represent a circle. AP3 and AP1 have the same position. From B, How can I move the points (AP1 and AP3 along the bigger ...
1
vote
0answers
25 views

Particle systems don't start unless I look at them (Unity)

I'm currently working on an atmospheric system in Unity (day/night cycle, weather). I'm having an issue where my rain/snow particle systems won't start unless I look at them. They're way up in the sky,...
0
votes
0answers
14 views

Fbx file increase in size after building apk

So I have a characters fbx, which contains a couple of my characters meshes and the avatar. The size of the fbx as shown in the explorer is about 3.5 mb. However, after building the game, its size ...