# How do I change the color of a box node

**URL:** <https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785>\
**Category:** Questions\
**Created:** [April 1, 2020, 9:03pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785 "2020-04-01T21:03:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 1, 2020, 9:03pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/1 "2020-04-01T21:03:28Z")

</div>

I am working through the tutorials in order and have reached colorslide. I am on the part where you make a level complete message, and am trying to make the box node behind the “well done” text and “back” buttons show up like the readme says:

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/6/a/6a498abcd210ec4433523206a68178559771b1df.jpeg)

However, what I have is this:

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/5/3/532bc48b2fb79be43402e62035bc5f3222c621b2.jpeg)

I did the obvious and changed the color setting and made sure the alpha was 1, but it still seems to be transparent. However, if I add a texture, it shows up and the color changes.

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/c/5/c5dc75a87e50204f4b2efdc5dc6fbcc6e92633b2.jpeg)

Do I have to have a texture to have the the box node show up, or is there a way to just make a color box that I’m missing?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 1, 2020, 9:18pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/2 "2020-04-01T21:18:33Z")

</div>

> [@2022hannam](#):
>
> Do I have to have a texture to have the the box node show up, or is there a way to just make a color box that I’m missing?

No, you do not need to assign a texture. Can you create a box node at the root of the node hierarchy? Does that node look ok?

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 1, 2020, 9:33pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/3 "2020-04-01T21:33:18Z")

</div>

No, whenever I create a box, it remains transparent, even when changing the color and alpha properties.

They don’t show up in game ethier unless I give them a texture.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [April 1, 2020, 9:50pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/4 "2020-04-01T21:50:28Z")

</div>

Can you upload the project as is in a zip?

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 1, 2020, 10:54pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/5 "2020-04-01T22:54:28Z")

</div>

Uploading: Colorslide tutorial - Copy.zip…

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [April 1, 2020, 11:42pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/6 "2020-04-01T23:42:35Z")

</div>

Was it posted before the upload completed?

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 2, 2020, 1:20pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/7 "2020-04-02T13:20:02Z")

</div>

[https://drive.google.com/a/lasd.k12.pa.us/file/d/10whwZVI\_4bvcn7G4\_MQziaL9kchhCR5Y/view?usp=drivesdk](https://drive.google.com/a/lasd.k12.pa.us/file/d/10whwZVI_4bvcn7G4_MQziaL9kchhCR5Y/view?usp=drivesdk)

Yes, it also said I had to use a link instead.

---

<div class="post-metadata">

**Author:** ![rama](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/rama/32/18329_2.png) [@rama](https://forum.defold.com/u/rama)\
**Post date:** [April 2, 2020, 2:55pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/8 "2020-04-02T14:55:24Z")

</div>

please upload to another host with no restrictions like [https://easyupload.io/](https://easyupload.io/)

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 2, 2020, 5:57pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/9 "2020-04-02T17:57:11Z")

</div>

[https://easyupload.io/xwqov3](https://easyupload.io/xwqov3)

Works for 7 days

I loaded it up again and it seems like it is rendering in game, but it dosen’t change colors in the editor.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 3, 2020, 4:34am UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/10 "2020-04-03T04:34:46Z")

</div>

> [@2022hannam](#):
>
> Do I have to have a texture to have the the box node show up, or is there a way to just make a color box that I’m missing?

I downloaded your project and opened the level.gui file and it looks ok on macOS:

 ![48](https://forum-defold.b-cdn.net/uploads/default/original/3X/c/2/c22607fe58796130855a99a287b0fed5930fcf06.png)

Could you please start a new empty project, create a new gui file and add a single box node. Is it still transparent?

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 3, 2020, 6:18pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/11 "2020-04-03T18:18:58Z")

</div>

Yes. Every box node I create for a gui does not change appearence in the editor but shows up in the build. It dosen’t matter which project.

I created a new empty project and loaded up the previous tutorial (warbattles), and adding a box node and changing it’s color for each did nothing in the editor.

 ![image](https://forum-defold.b-cdn.net/uploads/default/original/3X/9/e/9ebe3e168eb9726c7cb99025e90292721d03c6e3.jpeg)

My laptop uses Windows 10 Home  
I am using the latest version of defold.

---

<div class="post-metadata">

**Author:** ![GreenArrow](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/greenarrow/32/18490_2.png) [@GreenArrow](https://forum.defold.com/u/GreenArrow)\
**Post date:** [April 3, 2020, 9:11pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/12 "2020-04-03T21:11:19Z")

</div>

Your link above does not work anymore.

Please upload your sample project again, so we can try. I use Windows 10 as well, and I can’t reproduce this issue.

---

<div class="post-metadata">

**Author:** ![GreenArrow](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/greenarrow/32/18490_2.png) [@GreenArrow](https://forum.defold.com/u/GreenArrow)\
**Post date:** [April 3, 2020, 9:18pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/13 "2020-04-03T21:18:08Z")

</div>

Downloaded the sample project already. It also looks ok on my PC (Windows 10). Sorry can’t reproduce this on my end.

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 3, 2020, 9:55pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/14 "2020-04-03T21:55:59Z")

</div>

It still says there is 5 days remaining till it expires. I clicked the link in the above post, hit download, and it worked.

[https://easyupload.io/el4m8a](https://easyupload.io/el4m8a)

Here’s a new one though. 15 days.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 4, 2020, 5:20am UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/15 "2020-04-04T05:20:32Z")

</div>

> [@2022hannam](#):
>
> I created a new empty project and loaded up the previous tutorial (warbattles), and adding a box node and changing it’s color for each did nothing in the editor.

Create an empty project, add a single gui and box node. Don’t add the entire warbattle thing as well.

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 4, 2020, 6:05pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/16 "2020-04-04T18:05:12Z")

</div>

I

> [@2022hannam](#):
>
> I created a new empty project and loaded up the previous tutorial (warbattles), and adding a box node and changing it’s color for each did nothing in the editor.

I meant I created a new empty project and tried with it and did the same with the war battles tutorial, adding box nodes to each and changing their colors did nothing in the editor.

Sorry, reading back over that it wasn’t really clear what I meant. But I got the same result, box node is just an outline in the editor.

I tried it in the war battles after creating a new one and trying it there in case it corrupted things created after the problem existed, but it dosen’t seem like it.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 4, 2020, 7:10pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/17 "2020-04-04T19:10:42Z")

</div>

Ok, thank you for the clarification. I wonder if it’s a weird driver issue.

---

<div class="post-metadata">

**Author:** ![markus.gustavsson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/markus.gustavsson/32/12961_2.png) [@markus.gustavsson](https://forum.defold.com/u/markus.gustavsson)\
**Post date:** [April 6, 2020, 7:31am UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/18 "2020-04-06T07:31:20Z")

</div>

I cannot reproduce this on my Windows 10 machine.  
@2022hannam Can you post the editor log? Click Help-\>Show Logs and look for files named something like editor2.2020-04-06.log

---

<div class="post-metadata">

**Author:** ![2022hannam](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/2022hannam/32/18766_2.png) [@2022hannam](https://forum.defold.com/u/2022hannam)\
**Post date:** [April 7, 2020, 9:23pm UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/19 "2020-04-07T21:23:33Z")

</div>

[latest 2 logs.zip](https://forum.defold.com/uploads/default/original/3X/3/1/312ae0b7fb900e92c9bc199d94f14d21c60afbad.zip) (24.5 KB)

I put the most recent two, the one from starting it up today and the one before that.

---

<div class="post-metadata">

**Author:** ![markus.gustavsson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/markus.gustavsson/32/12961_2.png) [@markus.gustavsson](https://forum.defold.com/u/markus.gustavsson)\
**Post date:** [April 8, 2020, 4:31am UTC](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785/20 "2020-04-08T04:31:58Z")

</div>

Thank you for posting the logs. I see nothing strange in the most recent log. In the log from the third of april there are some errors at the start of the log that have to do with network and file system access but they seem to have gone away in editor sessions after the first one. I also don’t think those issues would manifest in this way. So the logs are not much help I’m afraid.

What CPU and GPU (if any) do you have? Please specify exact model numbers if you can. Have you updated to the latest versions of the editor and your graphics drivers?

[Next page](https://forum.defold.com/t/how-do-i-change-the-color-of-a-box-node/64785.md?page=2)
