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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug Unknown type: 'Unity.UI.Builder.UnityUIBuilderSelectionMarker'

Discussion in 'UI Toolkit' started by xvivax, Feb 4, 2022.

  1. xvivax

    xvivax

    Joined:
    May 16, 2017
    Posts:
    5
    Project contains:
    VisualElement with Grow=1
    Button inside VisualElement

    This is very inconsistent bug. Build is made for Android and happens only on the actual device.

    As you can see in the image, the error text appears on the bottom of the screen. When something is changed in the project it might dissapear with another build. For example, I changed grow to 0 and then back to 1, made a new build and issues dissapeared. This issue might occurs at any screen with any random elements in it.

    Unity: 2021.2.9f1
    S20204-07484075.jpg S20204-07475180.jpg
     
  2. igamol

    igamol

    Joined:
    Dec 9, 2018
    Posts:
    8
    Ha, just got this on a mac build
     
  3. igamol

    igamol

    Joined:
    Dec 9, 2018
    Posts:
    8
    To be more explicit, I get this on a Mac build and does not appear on the PC build. I don't know what should be including this or why or where
     
  4. exprt

    exprt

    Joined:
    Mar 24, 2013
    Posts:
    4
    I've got this also on WebGL build (2021.3.0f1), additionaly a browser console outputs something like this:
    "Element 'Unity.UI.Builder.UnityUIBuilderSelectionMarker' has no registered factory method."
    upload_2022-7-20_12-25-15.png


    EDIT: New build after restarting Unity helped.
     
    Last edited: Jul 20, 2022
  5. GilJoWal

    GilJoWal

    Joined:
    Mar 28, 2020
    Posts:
    26
    Hi, any update on that? I started receiving the same error message.
     
  6. goranovs

    goranovs

    Joined:
    Jul 26, 2019
    Posts:
    1
    I had the same error out of nowhere on an empty project in Unity 2021.3.19f1.

    I've tried to restart Unity and make a new build but that did not work for me. I've tried to remove the "UI Document" Component from my Scene. Then I made a new build and I added it again. This fixed it for me.
     
  7. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    521
    This seems like a caching issue of the build system. It will be difficult to fix without any way of reproducing this so keep an eye on any "triggers" for this. Does it happen when migrating the project from one unity version to another? when changing the build target?
     
  8. beone797

    beone797

    Joined:
    Feb 20, 2023
    Posts:
    1
    The Error Message did dissapear in my project after creating a "New" unsaved file inside the Ui Builder and closing the Builder without saving , i guess that cleaned up any left over helper variables of that builder tool.
     
    squigglebucket likes this.
  9. Knedlo

    Knedlo

    Joined:
    Oct 15, 2012
    Posts:
    42
    For me, this was an issue of not specifying a namespace for the button. I guess there's another Button class defined somewhere in my solution and I needed to write it as "<ui:Button/>" for it to start working. Perhaps Odin Inspector defines Button as well. Dunno, but that fixed it for now.