Third person controller and multiples input
Hi everyone ! First, excuse my poor english, this is not my natural born language. I'm working on a game with non conventional character moving inputs. Since I'm quite new to scripting I use the...
View ArticleInstantiate an empty on a local raycast hit position
Hi everyone ! As described in the title I'm having trouble trying to instantiate an empty on a local (meaning transform.forward not Vector3.forward) raycast hit position. That worked when I was trying...
View ArticleRaycasthit and normal orientation
Hi everyone ! Please scuse my poor english, that's not my natural born language I managed to instantiate an object from a raycasthit position but now, I'm having trouble on instantiate it at a certain...
View ArticleDrag and drop inside a panel
Hi there ! Is there a way to restrict the drag and drop of an image only inside the panel in which I instantiated it ? Thanks in advance for your answer !
View Articlesee C# 2D Generic List in inspector
Hi everybody, I've got a "containerList" that have 10 Lists with 45 items in it. The items are made from this class (which is serialized) : using System; using UnityEngine; using System.Collections;...
View ArticleNot allow instantiate obstacle that make destination unreachable
Hi all ! In the case of a tower-defense game using navmesh (with tiled floor), is it possible to detect if the construction of a tower will make the destination unreachable ? I tried to instantiate an...
View ArticleExecute a function only if hit.transform has changed ?
Hi, I'm using a RaycastHit with ScreenPointToRay(Input.mousePosition) to know what transform my cursor is over. Since this RaycastHit is in Update function, I was wondering how can I detect if...
View ArticleFind same values in a class list
Hey guys ! I Have a class for my hexagonal tiles map that contains multiples gameobjects (summits of the hexagon) that I use as waypoints. using UnityEngine; using System.Collections;...
View ArticleSpecial Grid layout
Hi all, I'm trying to achieve a special UI grid layout but I really can't find out how manage the different layouts component. At the end, I want that grid layout content to scale on it's parent width....
View Article[SOLVED]Billboard sprite shader
Hi guys ! I'm trying to modify the "Sprite - Default" shader (from the builtin_shaders-5.5.0f3) with another shader that I found to make my sprite become billboards. Currently the billboarding part of...
View ArticleIssue with Input.inputString on Macbook pro
Hi, I'm experiencing issues with the Input.inputString. Some keys aren't recognized (in my case the Delete key) and return nothing when debugged with following code : void Update () { string rawInput =...
View Article