Modify Built-In Class Variables Get/Set functions
Hello, I was wondering whether it might be possible to change the Get/Set functions of variables of built-in unity classes. More precisely I want to change the get/set properties of Text components to...
View ArticleHow 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 ArticleHow 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 ArticleAccessing 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 ArticleSee 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 Articleproblem 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 Articleproblem 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 ArticleHow 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 ArticleHow 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 ArticleGet 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 ArticleVisualizar 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 ArticleStore 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleGet Animator parameter index by name
Is there a way to get an Animator parameter index by name, like you can do with layers?
View ArticleGetting 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 ArticleHow 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 ArticleGetter/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 Articlehow 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 ArticleHow 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 ArticleIssues 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 ArticleHow 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 ArticleUnityWebRequest, 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 ArticleLooking 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 ArticleUsing 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 ArticleWhat 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 ArticleIs 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