UI Questions

3

Hello, guys! I have a question. When I am pausing my game, I want it to freeze and when unpausing I want it to unfreeze. I know basically how to achieve that but I don’t know how to make that, when I ...
Shearer asked 8/11, 2023 at 18:33

1

Hi, I have this shader: Shader "Sprites-GrayScale" { Properties { [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} _Color ("Tint", Color) = (1,1,1,1) [MaterialToggle] PixelSnap ("Pi...
Titanesque asked 10/3, 2023 at 22:26

9

NullReferenceException: Object reference not set to an instance of an object UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <4f969f18b6984883abf0f762caf9325d>:0) Unity...
Moribund asked 9/4, 2021 at 21:22

2

I’m using Textmesh Pro version 3.2.0-pre.5, and I have already imported the essential resources and examples and extras. The reason I’m using a pre release is that the official release was somehow pre...
Carthusian asked 15/9, 2023 at 10:52

1

In my project I’m using the Unity UI to make the inventory of the character. at the scene, there are objects with raycast that when they are clicked, activate a UI with information about them. if i’m ...
Leathaleather asked 10/2, 2016 at 10:28

3

Hey guys, I’ve been trying to figure out how block clicks in my game scene with UI objects, but I’m running into problems. I’ve set up this little debug code here if( Input.GetMouseButtonDown(0) ) { ...
Toggle asked 17/3, 2016 at 17:29

3

Solved

1

Solved

I made this mesh in blender, and imported it into unity as an fbx. The vertices array has a bunch of verts on it, but they are all 0, 0, 0. void OnGUI() { if (GUILayout.Button("test")) { plane = G...
Godown asked 2/5, 2020 at 3:1

2

I have a canvas that replicates an in game computer that toggles active when you enter the pc, is it possible to display the canvas on the monitor model? Making the canvas world space isn’t what I wan...
Burleson asked 14/8, 2020 at 10:31

4

I trying to write an editor script to copy/paste whole content of a GUI style because I need refactoring GUI part of my project. But I don't know how to start and firstly make a context menu on a GUI...
Conveyancing asked 7/1, 2010 at 14:43

1

I want to resize a button while it’s being pressed. At the moment I have a style with no image as background (_style.normal.background = null) and Buttons are being drawn using some images and that st...
Lamas asked 5/2, 2012 at 23:36

2

Solved

Hello Forum, I’m trying to make a menu that is built at runtime. for (int i = 0; i < bd.ItemCount(); i++) { buttons.Add((GameObject)Instantiate(button)); buttons*.transform.SetParent(transf...
Scrooge asked 13/1, 2015 at 13:28

1

So, I am building a mobile game where you place blocks by touching the screen. The problem is, when I am touching the player controls, the game places a block. I have been working on this problem for ...
Unfrequented asked 1/8, 2023 at 7:59

0

I am currently using the Sprite Library and Sprite Resolver components on my in-game player object, which has a Sprite Renderer. This is very useful for swapping out the animation sprites all at once ...
Geometric asked 17/7, 2023 at 16:14

10

Solved

I have 2 canvases, and each one has a button. When I click one button on one canvas It didn’t let me click on the button on another canvas. I used Debug.Log to confirm the onclick event wasn’t fired, ...
Cinema asked 30/6, 2023 at 13:45
1

© 2022 - 2024 — McMap. All rights reserved.