I have a prefab object that has many children. I highlight any "One" of these children and change its color. I am selecting another child of the same prefab and highlight it by changing its color but at the same time I want the previous child to deselect or change back to its original color. The highlight and change color are not the problem, I am struggling to see if I need to store the children in an array and then loop through the objects to see if they have been selected and if so then change back or... this is where I am stuck. Any ideas, tips, recommendations?
Deselect prefab child object after new selected (same prefab) child object is clicked on in Unity3D?
60 Views Asked by FuzzyShtzuTdyBear At
1
There are 1 best solutions below
Related Questions in ARRAYS
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- What does: "char *argv[]" mean?
- How to populate two dimensional array
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- Function is returning undefined but should be returning a matched object from array in JavaScript
- The rules of Conway's Game of Life aren't working in my Javascript version. What am I doing wrong?
- Array related question, cant find the pattern
- Setting the counter (j) for (inner for loop)
- I want to flip an image (with three channels RGB) horizontally just using array slicing. How can I do it with python?
- Numpy array methods are faster than numpy functions?
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- How to return array to ArrayPool when it was rented by inner function?
- best way to remove a word from an array in a react app
- Vue display output of two dimensional array
- Undot Array with Wildcards in Laravel
Related Questions in UNITY-GAME-ENGINE
- How to use invokerepeating and make ui text fade in/out over time?
- Player input not working properly in unity
- Get block in Mesh Unity
- Does Unity render invisible material?
- Physics.OverlapSphere couldn't detect my ‘Player’
- Cannot sync non-player objects in Unity mirror
- How to script a simple collision using hands in OVRCameraRigInteraction?
- Drawing on 3D object at Unity
- How to Override Spline Rotation for Player-Controlled Car in Racing Game?
- Why doesn't my enemy shield take damage first. Instead both enemy and shield are being destroyed together
- unity + Vuforia balck screen in android AR app
- how do I change an objects tag when the game closes
- How to remove white space in a user's input through an input field in Unity?
- Timeline doesn't start eventhough it recognises the trigger input
- Ragdoll 2D Aiming
Related Questions in HIGHLIGHT
- make selected text visible in PGAdmin 4 Query Editor
- Highlight markdown text in android
- Conditional formatting to mark certain cells according to what's present in a list + has the correct grouping?
- Bring highligthed points to the front in ggplot
- Implement Highlight.js in TextArea
- highlight rows in SELENIDE
- How to make FragmentHighlighter to highlight an element with pure highlighter's color in openbim-components (IFCjs) + THREE.js
- Comparing two dataframes and highlighting the differences
- Chrome Extension Highlight Feature Not Applying Background Color
- PHP app needs to display .pdf file in browser with highlighted word(s)
- Highlighting a plot according selectInput
- How to get scoring of highlighted results in ElasticSearch
- Regex ignore patterns
- How to change background color of selected code
- Support syntax scheme.prisma file by IDE
Related Questions in GAMEOBJECT
- Moving Unity GameObjects spawned through Instantiate
- Display Turn UI object only for the player with turn in unity netcode NGO
- Moving sphere to a 2D waypoint on terrain in a 3D space Unity
- In Unity why cant I append this game object to an array. Error: ArgumentNullException: Value cannot be null. Parameter name: source
- unity gameobject invisible in hololens 2
- Why doesnt 'Instantiate' not exist according to Unit
- moving pivot point of an object in unity
- Unity eventtrigger for a flipped gameobject
- how to remove jerk in player movement?
- How can I access variables from a clone of this Game Object in Unity C#?
- Set texture grid or diamond view on a plane quad in Unity C#
- Player is not moving using on-screen button in android but working fine in Game/Simulator mode
- Unity - Apply force to gameobject of child of a child
- GameObject not showing in script
- Unity SpriteRenderer changes but no visual change
Related Questions in DESELECT
- How to fix deselection behavior of limited selection JFileChooser.setSelectedFiles(fs) in PropertyChangeListener to maintain already selected files?
- Deselecting items in Html.Dropdown doesn't set text to "Select..." title
- There is an issue in the deselection process that adds unwanted partition lines during the deselection of the selected area of the image
- Regex deselect anything in the line before match
- How to automatically select all items above the selected one & deselect all items below the deselected one flutter
- How to automatically deselect all items below the selected one flutter
- How to automatically select all items above the selected one & deselect all items below the deselected one flutter
- Clearing a list box and any selected items in list
- Deselect all checkboxes except mandatory/disabled checkboxes Angular
- How to deselect based on condition (R)
- deselect matrix columns using subsed and !grepl functions
- Facing issue in selecting and deselecting tableview cell in swift
- Why is both radio buttons selected in tkinter when the program starts?
- How to select and deselect on dropdown list react
- Deselect prefab child object after new selected (same prefab) child object is clicked on in Unity3D?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here's a link! This link helped, I had everything in the OnMouseDown checking but never updating. So, if anyone checks this out it could help with the same question I posted.