Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Problem with Folder Names

Discussion in 'UI Toolkit' started by ultimate2106, Sep 17, 2022.

  1. ultimate2106

    ultimate2106

    Joined:
    Nov 18, 2017
    Posts:
    26
    So for some reason if I name my folder "GameResources" I can't use images as e.g. background in a VisualElement. But if I rename it to something like "GameResources_XY" it works! Someone can help because I don't want to rename lol

    How to Reproduce:
    - Create new Project with Unity 2021.3.10f1
    - Create folder with the name GameResources
    - Put an image (in my case it's a PNG) into the new folder (I called it background)
    - Open UI Builder
    - Create VisualElement
    - Try to set the background of the new VisualElement to the image (e.g. Texture)

    Result:


     
  2. pierre_10

    pierre_10

    Unity Technologies

    Joined:
    Apr 1, 2016
    Posts:
    33
    Indeed I can repro. let me log a defect and get back to you with a tracker ID
     
    DevDunk likes this.
  3. pierre_10

    pierre_10

    Unity Technologies

    Joined:
    Apr 1, 2016
    Posts:
    33
  4. ultimate2106

    ultimate2106

    Joined:
    Nov 18, 2017
    Posts:
    26