• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Problem with z-index (video above component button and textinput)

Community Beginner ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Hi,

I have a small problem with my components "button" and "textinput".

I added a background video with the code :

canvas.style.zIndex = "1"

so that the other elements are above. I also made the scene background transparent.

All the elements are well above except the 2 components "button" and "textinput" which remains below the video.

 

Do you have any idea how to fix the problem please ? Thank you and good day.

Views

176

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Actually i just saw that the code 

canvas.style.zIndex = "1"

 the operation of the 2 components. They have below and cannot work with the code. How to do ?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

The code blocks the components I meant.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 26, 2022 Aug 26, 2022

Copy link to clipboard

Copied

LATEST

I tried again, but I can't put the video on the bottom and the components on the top

And the code locks

canvas.style.zIndex = "1"

both components.

Has anyone encountered the problem before?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines