All Questions

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

Unity - how Default Line material can be applied to line constructed using code, without using inpector to pass default material?

I have scene with camera, light source and empty object with an attached script. I generate red line but its material is never set. Ho can I set, in script, its material as Default-Line? Without this ...
1
vote
0answers
32 views

What Unity editor settings maximize the editor performance?

I am teaching a Unity game development course through Zoom, and apparently the load of both Zoom and Unity is straining my 3 years old laptop. I would like to change some settings in the Unity editor ...
1
vote
1answer
53 views

Minimax in a losing scenario vs an imperfect player

I'm working on a solver for Triple Triad, a simple two-player zero-sum card game. Right now, I'm using Negamax (a variant of the well-known Minimax algorithm) with alpha beta pruning, and the game is ...
0
votes
0answers
29 views

Very basic question: Passing data in fragment shader to next frame (Metal)

I am casually trying to learn a bit about writing simple fragment shaders, in particular using Metal API. I have been experimenting in KodeLife. As a simple example, I am trying to remake the Double ...
1
vote
0answers
21 views

Touch phase is moved when touch pressure changed

I am trying to scale my object by a finger touch just like in Jelly Shift game. It should scale up/down when I move my finger up and down and it should stop when the touch is in stationary phase. The ...
4
votes
3answers
216 views

Is there an "official" term for the "key-door problem"?

The "key-door problem" is a term I've come up with, after playing a number of Metroidvania or Zelda style indie games. One distinctive feature of these games, is that the player is free to ...
0
votes
0answers
35 views

A Godot tool script that adds a button the the inspector that opens a different scene

Here's what I need but can't quite figure out: I want a button on the Inspector of a particular node. When that button is clicked (during the editing, not when the game is running), I want to switch ...
2
votes
0answers
16 views

Tweak brightness of widget in UE4

I would like to make an interactable monitor in Unreal Engine 4.26. I am using the default material for widgets as you can see in the image below: The texture I would like to show is: When I drive ...
-2
votes
0answers
18 views

when I type "void On-Collision" in VS code it is not being completed like any other command. what should I do?

'Ninja.OnCollisionEnter2D(Collision2D)' must declare a body because it is not marked abstract, extern, or partial [Assembly-CSharp]
0
votes
2answers
35 views

How do I track 2 lights in real time with a camera and send it to a phone in Unity?

I am trying to track 2 lights and send that data to Unity for VR controller tracking. How do I get started? Do I make an app that communicates with Wifi or something? And how do I detect the lights? ...
-1
votes
3answers
36 views

Cannot drag GameObject into exposed field in the Inspector

I followed the Brackeys' How to make a health bar tutorial on YouTube, and it worked perfectly when playing around with the sliders myself. But, when I tried to drag the health bar object into the ...
0
votes
0answers
20 views

Unity game extecutable sometimes takes longer to launch, and Unity splash logo doesn't show

In the exported build of my game (which uses Unity 2020.3.15f2), I notice that sometimes the game's executable launches immediately, correctly fading in and out the built-in Unity logo on the splash ...
0
votes
0answers
28 views

How would I determine the size / camera bounds of a staggered isometric map?

I am currently making an isometric 2D game, and the map grid is of the staggered-isometric type. I want to attempt to create the camera so that it stops at the end of the map bounds. Now I am fully ...
0
votes
1answer
40 views

How can I color each squad in another color?

...
0
votes
0answers
17 views

How to change the color of the overlapped object when it overlaps with an transparent object

i use 2019.4.32f ,unity shader graph in urp I was refered to that url. https://forum.unity.com/threads/highlight-intersection-shader.731177/ With reference to it, intersection applied in opaque ...
-1
votes
0answers
12 views

Need help with cube colliding with wall and the wall moves

When I pick up a cube it collides with the wall and wall moves in UE4, anyone know a fix for this problem?
1
vote
1answer
32 views

How do I get a range of vertices/edges using a half-edge data structure?

I have a half-edge data structure in 2D which loops through edges in a triangle in a clockwise order. I'm trying to get a range of vertices within a target vertex. Let's say I want all vertices within ...
0
votes
0answers
27 views

Hashing images like CDs for Monster Rancher style randomizations

I have been kicking around an idea for creating a web based game where they can upload images in order to create random monsters/items. This I thought was most similar to how monster rancher ...
0
votes
0answers
14 views

How can I speed up my Unity project's (re)load? [duplicate]

Bit of an odd question here, but I'm primarily looking for a sanity check I suppose. As I've worked on my project, the "load time" after making a change has gotten longer and longer. In the ...
0
votes
1answer
23 views

How to sync the speed of a rigidbody and the speed of a running animation

I have a character with a run animation. The animation was downloaded from mixamo.com. In the animation controller, the physical update mode is selected. How do I change the speed of an animation ...
4
votes
5answers
2k views

Should we have multiple scripts doing only one thing, or one large script?

I'm currently working to make a game, and it's a first for both of us. We are at the point where we are starting to have a lot of scripts pile up, and are wondering about the resource management & ...
0
votes
0answers
38 views

ECS, How to query an entity with specific value?

I have a background in ECS by using C# Entitas. The library itself has a very nice feature which lets me able to query the entity with a specific value in the component. For example, query an entity ...
1
vote
0answers
19 views

Splitting the mesh of a plane into submeshes

I am struggling a bit with this. I am trying to split a plane recursively into subplanes, so that frustum culling is more efficient. I am doing that by dividing the indices into the 4 subplanes for ...
0
votes
0answers
51 views

Game server question: Sharing data between server and client

I'm personally developing a massive multiplayer server for the FPS game genre. (Ex: such as battlefield series or call of duty series) In general, people usually use a server and client structure to ...
0
votes
1answer
83 views

How do you repeat a tile texture horizontally/vertically in a UI Image?

It seems Unity UI Image supports Image Type 'Tiled', but I'm not sure how to get the tiling to work both vertically and horizontally. Can someone help me understand?
-3
votes
0answers
33 views

Flap birds wings when user hits spacebar [closed]

How would I go about triggering a bird flap animation when the user hits the spacebar?
0
votes
0answers
38 views

ComputeBuffer Values messed up when calling the dispatch many times in a row

I'm having a RWStructuredBuffer called AffectedVertices give me random data instead of 1 simple value to resultAffectedVertices, ...
1
vote
2answers
55 views

What is the point of .meta files for Unity source code files?

In my Unity project each of source code files is accompanied by .meta file ...
0
votes
1answer
37 views

Cascaded Shadow Maps - Handling shadows that cast into different cascades

For example I have 3 shadow cascades. A shadow is cast by a hill in my 2nd cascade, but the shadow itself is cast into not only the 2nd cascade but also the 1st. In the shader program, in order to ...
0
votes
1answer
33 views

How to run a DOTween tween on float and apply it to a component on each update?

I am trying to use DOTween by tweening a float and then applying that float to the parameters of a gameObject's components on each update. In LeanTween, this was done like this: ...
-1
votes
0answers
32 views

Detect getting hit outside of the game

Is there a way to have a program that listen to a game, and execute the code on the event of detecting a hit?
0
votes
0answers
26 views

Why is my Unity Scene (not Game) view stretching content when I resize it?

My Unity editor (happens in both 2021.1.22f1 and 2020.3.22f1 builds) recently started running into a strange problem. I first noticed it when exiting the game view for a level I'm designing. ...
-1
votes
0answers
34 views

including saved localLow data in exe build

I have several text files in my localLow/project folder that I need to be included in the .exe so that when the program is run on a new computer, the data populates ...
1
vote
1answer
44 views

Unity - How to store a Dictionary in a serializedObject property

I'm writing a custom editor for my GridModel object. The object has 2 fields; Vector2Int dimensions and a ...
0
votes
1answer
63 views

Should a game company use a TLD outside of the .com space?

As an indie developer who has shipped games in the past, I've always had trouble with the marketing aspect of the business. In the last decade, many companies have expanded beyond the ...
1
vote
1answer
42 views

Only Square Textures loading correctly (Beginner question)

(Sorry if this has already been asked, I couldn't find any other question or source describing my problem) Okay so basically Square textures load and display just fine. But for some reason, when ...
0
votes
1answer
25 views

Compass objective indicator points towards wrong direction

I have a compass that is pointing towards player forward direction. ...
0
votes
0answers
30 views

How can I change the moving objects speed at runtime?

The manager script ...
0
votes
1answer
31 views

Flappy Bird Pipes not colliding with with Square

So, I'm quite new to game development and am trying to make a clone of flappy bird. The way my game operates is that I am spawning the pipes to the right of the camera, and then making it move all the ...
2
votes
1answer
547 views

Spritesheet with unstable width

I'm working on my 2d game engine using HTML5 and Canvas. I have a sprite sheet, and each frame of this sprite sheet has its own size. Considering that the Viewport is following this sprite sheet (in ...
-1
votes
0answers
49 views

How to build cross-platform for iOS and other platforms with a single graphics API? [closed]

I was able to support Windows and Android with my C++ game by using: sdl2, sdl2_net, assimp, freetype, imgui, glm and I'm planning to use OpenGL for Windows and OpenGL ES for Android, but my problem ...
0
votes
2answers
71 views

Why do objects spin in circles instead of stopping when reaching their target?

This script is attached to each drone. ...
1
vote
1answer
19 views

Why the target variable can't find the object name "Base"?

"Base" is in another scene but I thought Find will find it even if it's in another scene. ...
0
votes
0answers
40 views

Unity, mobile, how to access location in background?

How can I access location on mobile in the background in Unity? My use case is for geofencing, while the app is running in the background (eg. phone may be locked), check if the user is within a ...
0
votes
1answer
33 views

Why does OnTriggerEnter2D/OnCollisionEnter2D work when there is no other collider object opposite?

my bullet: There is a Box collider (checked "is Trigger") It has Rigidbody2D (Gravity = 0, freeze rotation Z) https://imgur.com/T4j1QoO I added the "OnTriggerEnter2D" function ...
0
votes
1answer
22 views

How to change uwidget alignment on/after construction?

Have no idea how to align/realign uwidgets via c++. I have a following widget structure: UButton->UOverlay->UImage. Have to make UOverlay to HFill and VFill the UButton
0
votes
1answer
11 views

UWidget::SynchronizeProperties() is not being called on in editor property change

I have to change the children list every time the enum variable property is changed from widget editor. None of the functions I've tried so far seem to have worked (virtual void OnEndEditByDesigner(); ...
1
vote
1answer
100 views

How to create/get good terrain texturing for an RTS game?

I'm writing an rts-style game, so I have an overhead camera, typically 20-50m above the terrain. Most ground textures (grass, dirt, etc.) I find are obviously made for a much closer, probably FPS-...
1
vote
0answers
48 views

In Unity Game Modding, is there away to circumvent or substitute Resources.LoadAll?

I was playing a game recently and I started creating a mod to adjust it's gameplay to my liking, just for fun, until I got stressed out by how absurdly long the game takes to start up and show the ...

15 30 50 per page