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

Answer by Cherno

> 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...

View Article


Answer by curiouspers

When you do this: images = blackImages; you're making images reference of blackImages, in other words it's one list but two variables pointing to this one list. So, in your case you may replace the...

View Article


Answer by Cherno

> 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...

View Article

Answer by curiouspers

When you do this: images = blackImages; you're making images reference of blackImages, in other words it's one list but two variables pointing to this one list. So, in your case you may replace the...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images

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