All Questions

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
0answers
43 views

2D Map Chunks - Individual Files?

I have a 2D map of 500 x 500 tiles, split into chunks of 256 x 256. I'm saving each chunk as a separate file, and I have them loading in as the player moves around. This means however there's over ...
0
votes
1answer
21 views

How to make dynamic text like in EU4?

I want to make some dynamic text, like it's in europa what's mean, text depends on size of an multiple objects (provinces). Anyone have idea, how it's done in EU4?
0
votes
0answers
8 views

Detecting when a single group of blocks is broken into multiple groups

Let's say you have an array of blocks (AABB), where each block is touching or intersecting any number of other blocks. Together they make up a larger object, and because they're all touching, you can ...
1
vote
0answers
45 views

Alpha is not working in diffuse light shader

I am following this tutorials series on rastertek.com and I got a bit stuck on the Diffuse Lighting Tutorial. Particulary, the part that does not work for me is alpha channel of the light color. Here ...
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 ...
0
votes
0answers
29 views

Frequency-based ELO rating

To replace the context, you probably heard of the recent new game Apex Legends. If not, it's a battle-royal game where 20 squads of 3 players compete to be the last team standing. So in the end of a ...
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
vote
0answers
15 views

Phaser: InvalidStateError

I am using the Phaser framework for game development, but while working on it I face a bug which is annoying, I have the following message: InvalidStateError: An attempt was made to use an object ...
-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, ...
0
votes
1answer
92 views

Why do 3D animations have framerates

As far as I'm aware, all 3D animation software (Maya, Blender...) has framerates. That is, keyframes can only be placed on discrete points in time. Why is that? Why can't animation keyframes be placed ...
2
votes
3answers
522 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
22 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 ...
1
vote
1answer
49 views

Planet Surface Rendering: Precision issues

I have been experimenting with C++ and OpenGL, and I am currently writing a program that renders the surface of a planet; specifically, our moon. It's a modified version of the GPU Gems implementation ...
0
votes
2answers
107 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 ...
0
votes
1answer
21 views

Phaser: How to call a function inside another function?

So I actually have the following code that works: ...
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 ...
0
votes
0answers
10 views

Phaser: How to use a simple timer from 0 to 3

I am using the following code (which is a simplified snippet in order to make it more readable): ...
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 ...
0
votes
0answers
13 views

bullet raycast vehicle - understanding coordinate system

Bullet world space coordinate system is the same as opengl world coordinate system. I have noticed that raycast vehicle has the following function: ...
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
25 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
45 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 ...
0
votes
1answer
32 views

Efficient way to go about acquiring game assets [closed]

I was thinking about buying assets, but I don't want to waste time and want to acquire assets as fast as possible, and acquire a large amount of them, because I want to make several different games ...
2
votes
1answer
76 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
1answer
51 views

How can I determine that a user actually followed me to give them an in-game reward?

I have seen many apps where they will reward you if you follow them on social media. However, all you need to do is click on the link and then close the browser opened up and you will still be ...
0
votes
0answers
13 views

Adding voiced random encounters in Skyrim

I am wondering how I can add random events such as "College Application Denied" and "A Good Death" with the Creation Engine. https://elderscrolls.fandom.com/wiki/Random_Encounters_(Skyrim) I looked ...
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?
2
votes
3answers
462 views

Is there a way to easily make 3d models and textures for people with no prior experience? [closed]

I want to make a game, but I need assets. I am wondering if I should make them by myself even though I never made any textures or 3d models before. Are there technologies that allow you to easily make ...
0
votes
1answer
34 views

How do i prevent my player from walking through mesh collider

I have a character being moved using rigidbody.moveposition and I have an floating lowpoly island with a mesh collider. When my player walks into a steep slope or a wall, it passes right through. I ...
2
votes
0answers
56 views

How to port an html5 canvas game to sell on PC / Console?

I am trying to make a 2D platformer, but I want to use html5 canvas since I find it much easier to create 2D games with it than with Unity. I am wondering if there is some way I can bundle my game so ...
1
vote
0answers
45 views

Getting the Closet Points between Polygons with the GJK Algorithm

I am trying to implement the GJK algorithm by following this lecture. For the most part, it is working, but sometimes 1 of the 2 closest points is incorrect. Here are two examples: EXAMPLE 1: The ...
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
1answer
30 views

LibGDX: Change Direction

I want to move an object on screen and when the object intersect with the obstacle he change the position, for example he's going to the right and he found an obstacle, so he change to the left. <...
2
votes
1answer
51 views

SDL render surface from byte array efficiently

In my current project I need to fill a 256x224 screen with the pixel values from an array. The array is declared this way: uint8_t *vram = new uint8_t[7168]; So ...
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 ...
0
votes
0answers
41 views

Render Pygame sprites with PyOpenGL

I am using Pygame for rendering my sprites, however that work is done on the CPU side. For performance reasons I would like to change to drawing those sprites using PyOpenGL. How can I take textures ...
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
12 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 ...
0
votes
2answers
72 views

c# console based snake game

...
1
vote
1answer
70 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 ...
0
votes
1answer
30 views

Direct3D & Assimp Texture is inverted weirdly!

I'm working on a rendering engine but even on the first mesh is something wrong. I use assimp for mesh importing! In the Assimp Viewer it looks correct: And in my software it looks like this: Look ...
0
votes
0answers
26 views

Detect how many blocks can be moved given a grid of blocks

Let G be a grid of booleans where true means a block is there and false means there isn't a block there. Let P be the player, ...
3
votes
1answer
102 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
24 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
10 views

How to calculate falling speed in spritekit?

Is there a way to calculate falling speed based on physics body settings, instead of waiting it to fall and getting velocity? I would like to find what time it takes for object to fall from defined ...

15 30 50 per page