Quantcast
Channel: Questions in topic: "get"
Browsing all 215 articles
Browse latest View live
↧

if statement in a get function

So I'm working on a project with a camera where i have the camera but other team members don't so i have 2 different object groups 1 virtual and 1 that works with the camera. So I'm trying t make a...

View Article


Getting the name of a gameobject, then using that name to find it.

Hello, I'm looking to find out how to get the name of a gameobject then use that name to find that same gameobject. The way things are set up in my game, the gameobject will go inactive at some point,...

View Article


How to get the index value on prefab button runtime by clicking on prefab

Hi Everybody, Could you please help me how to get the index value on prefab button runtime by clicking on prefab button.i need to get value on prefab by clicking to edit according to 03 Script data...

View Article

Getter/Setter throwing missing reference on scene change

Hi Guys, In my game I have several getters that get the position of some transforms. They look like this : > [SerializeField] private Transform> _workerDropOffTransform;> [SerializeField]...

View Article

How do I get cars from 6 different lists depending on players select?

,Hello, I am struggling with selecting cars from a specific list. For example, I have an ambulance, bus, police, garbage Truck, fire department and a taxi car lists to choose in the Car Selection Menu...

View Article


Loading a sprite from resource folder

Hi all, from learning from below video i got stuck while adding sprites (at 15:30): https://www.youtube.com/watch?v=OxObASeB05I When i try to include sprites (using set get and Resources.load) sprite...

View Article

how can get value from same script ??

i try long way to get value, public Stats thisStats; public Stats otherStats; public int health; public int defense; public float damage; public float power; public bool skill1; public bool skill2;...

View Article

How To Get Labels Assigned to addressable Assets in run time

hi , and thank you for you support. i need get list Labels that assigned to my addressable asset in run time, i have IResourceLocation in a list but i can't find Lables here.... please help me about...

View Article


Issues with UnityWebRequest GET on Android

Hi everyone and thanks for your help! I am trying to ask my web application if a user is ok to connect or not and I am currently struggling with webrequest on android. First I worked with...

View Article


How to get multiple lives

I have a game where every time the main character passes a goal at a certain time, it earns five extra lives along with five hundred points. Also, when the character reaches 100 points, it earns a...

View Article

UnityWebRequest, C# request.accept equivalent?

Hello, I have tried searching for this question but I either cannot word it properly, or I just don't understand it enough to know what to look for. I am trying to send a UnityWebRequest, but I need to...

View Article

Looking for a less verbose get/set syntax

I'm following a tutorial about making a hierarchical state machine, and it's also my first real attempt at heavily using getters and setters. If you look at my script linked below, you'll notice that...

View Article

Using a getter but setting the value from the inspector

I want to be able to define a reference in the inspector, but only get that reference in the code—not set it. I was thinking this would work [SerializeField] public SomeClass SomeClass { get; } I've...

View Article


What is the best way to communicate between to seperate Apps?

Hi, - Basically I want one app to tell the other app what to do. Specifically, the first app is controlled using a touchscreen and displays a 2D map which can be moved around. In the second App I have...

View Article

Is there a way to get scripts via string?

Im making a game with many attack types. Each attack is a script that has 4 segments. Get targets in range, doTargeting, doAttack, doAIAttack. So in the main attack script everytime I have to get the...

View Article

Browsing all 215 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>