Quantcast
Channel: Answers for "List is removing from two lists when it should only remove from one"
Viewing all articles
Browse latest Browse all 4

Answer by Cherno

$
0
0
> As you can see, there is nothing telling it to remove from the blackImages list Wrong. blackImages is a reference to images, so both lists actually reference the same GameObjects. To create two seperate lists, you need to make sure they hold instances, not references. [c# copy list without reference][1] [1]: https://www.google.com/search?q=c%23%20copy%20list%20without%20reference&rct=j

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images

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