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

How do I make mouse clicks to be processed only where I need it?

There is an object on the stage (let's call it the button). So I need that when I poke it with a mouse in the console wrote a message (for example: it works). For this, I wrote the script using...

View Article


How can I get the First Person Controller?

I used to be able to get the First Person Controller in a package that I could import but it's not there anymore! I really need it and I'm not sure how to get it. Not sure if it's the update or what...

View Article


Are properties variables?

if not, can they be used as variables?

View Article

Accessing variable in collider, regardless of the scripts name attached to...

Dear forummembers, I am creating a simple top-down shooter where there is 1 player and several different kinds of enemies. Both the player and the enemies shoot different kind of bullets. All enemies...

View Article

See Request of WWW or UnityWebRequest, 403 error only from android in a...

Hello, I have a code that downloads data from a url. I have a problem that one Url gives me error 403 (Forbidden) only from android. When i get the url from editor or Windows build, all works...

View Article


problem updating info to data base

Hi, I have a problem which I mange to update the data *but!* the update is done regardless of the user info and only after I clicked once. ill explain I want to add to the user with a name he typed...

View Article

problem updating info to data base

Hi, I'm using "Rest Client for unity" which I imported from the asset store. I have a problem which I mange to update the data but! the update is done regardless of the user info. ill explain I want to...

View Article

How to check if a position has a type of tile

I am wondering how I receive the tile type of tile (like a Watertile, RoadTile, GrassTile, ect..) based on a Vector3 or Vector3Int. I think the way to do this is with Tilemap.GetTile but I cant figure...

View Article


[Unity 2019] How get distortion effect based on normal map?

I try to get distortion effect on screen such like warm effect from fire, but Partical shader whith turned on distrortion don't work! I remind, what i'm using unity 2019 with lightweight pipeline....

View Article


How to get game icon via code?

Something like, Application.productIcon. I want to do something like Texture2D myTexture2D = Application.productIcon; In player settings, the Default Icon field IS a Texture2D, I just don't know how to...

View Article

Get gameObjects from a protected GameObject array of base class in derived class

I have a `StageScript` in which I am filling an array in the inspector named `UnorthodoxSeats` marking it as `[SerializeField] protected GameObject[] UnorthodoxSeats` in the script. When the script...

View Article

Visualizar os dados da rede (UnityWebRequest) - View network data

Existe alguma possibilidade de verificar todo o conteúdo das chamadas feitas utilizando o UnityWebRequest (GET, POST...)? Estou utilizando bastante esse recurso porém sempre tenho dificuldades em...

View Article

Store Current Level Using Preferances?

i m working on 2D game: **problem is here** : when player first level complete then going second level,player out (second level)then load first level not second level Code: void...

View Article


How to send a UnityWebRequest.GET with a raw json body?

How can I send a UnityWebRequest.GET with a raw json body? There is no overloaded function of **UnityWebRequest.Get** that let me send a bodyData just like **UnityWebRequest.Post** or...

View Article

Get variables from an editor script through a regular script

Is there a way to get the variables in an editor script from a regular script? For example: public class ExampleEditor : Editor { float a = 5; } and then in another script I get the value of a. Thanks!

View Article


How can i get the gameobject name which contain the script

I wants to make check : if the name of the **gameobject** that contain the script is **army** do some thing and if name is **enemy** do another thing

View Article

How Do I Get And Set References For Timeline?

I've been scanning through the docs like a mad man, but I can't figure out how to get and set references to game objects in Timeline tracks. I want to work on some scripts that will dynamically insert...

View Article


How Do I Get And Set References For Timeline?

I've been scanning through the docs like a mad man, but I can't figure out how to get and set references to game objects in Timeline tracks. I want to work on some scripts that will dynamically insert...

View Article

Get Animator parameter index by name

Is there a way to get an Animator parameter index by name, like you can do with layers?

View Article

Get value from Serialized system

public AS_LevelInfo[] levels = new AS_LevelInfo[] { new AS_LevelInfo ("Some Data"), /Element0 new AS_LevelInfo ("Some Data"), //Element1 new AS_LevelInfo ("Some Data"), //Element2 new AS_LevelInfo...

View Article
Browsing all 215 articles
Browse latest View live


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