How to set visibility false in LIBGDX Arraylist?

user6369007

I need to set visibility false for first ladrilloOro. How can I make it happen? Below is the snippet I am trying:

private List<LadrilloOROEntity> LadrilloOROlist = new ArrayList<LadrilloOROEntity>();
LadrilloOROlist.set(0,LadrilloOROEntity).setVisible(false); // ERROR HERE
for (LadrilloOROEntity ladriORO : LadrilloOROlist){
        stage.addActor(ladriORO);
    }
Peanut Panda

Why not do it like this:

    LadrilloOROlist.set(0,LadrilloOROEntity); 
    LadrilloOROlist.get(0).setVisible(false);

Also, take a look at libGDX's 'Array' instead of using a regular ArrayList.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to relayout a dialog in swt after the visibility of group inside it is set to false

How to set visibility of ImageButton

How to set visibility in Kotlin?

How to set visibility on Android?

SWT components relayout after visibility set to false

SciChart - LineArrowAnnotation not disappearing when visibility is set to false

How do I set JFrame's visibility to False after button click on IntelliJ?

How to set default value to false when using converter with Label's visibility Xamarin forms

How to set Widget button visibility?

Set Visibility true or false for 2 elements using dependency property

Set the visibility of wpf CheckBox to hidden if its value is false

Set all values of ArrayList<Boolean> to false on instantiation

LibGdx - How to set layers for the Sprites

How to set visibility for include layout in databinding?

Android - How to set visibility in xml depending on device?

How to set visibility for a given cluster to a specific member

How to set visibility and attr in jquery 3

How to set the excel file's visibility to true

How to set the visibility of calendar of datepicker to hidden wpf

How to set Excel Workbook Visibility in C#

ViewBinding - How to set visibility for include layout in ViewBinding?

How to set Visibility of Stroke of a Shape in WPF

How would I default visibility of a button to false if binding is null in Xamarin

Libgdx: How to set row background in a table layout?

How set Libgdx bitmap font size?

libgdx - How to set model rotation pivot?

How to set the width and height of Screen in Libgdx?

How do I set a filter to an animation in LibGDX?

How to set namespace aware to false?