Search Unity

Feedback Request to not strip comments from UXML/USS files

Discussion in 'UI Toolkit' started by LudiKha, Sep 9, 2020.

  1. LudiKha

    LudiKha

    Joined:
    Feb 15, 2014
    Posts:
    140
    As a person who works directly in UXML & USS, it is vital for me to be able to add comments in these files. However, every so often these files get "reformatted", and in the process get stripped of comments.

    The reformatting also splits up comma-separated selectors in USS files, making them less clean in the process.

    Is there a chance we can leave comments in our files?

    Cheers.

    - K
     
  2. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    Hello, we're passing on this feedback to the dev team :)
     
    LudiKha likes this.
  3. sebastiend-unity

    sebastiend-unity

    Unity Technologies

    Joined:
    Nov 9, 2015
    Posts:
    184
    Hi Ragoo,
    This is something that comes back every now and then indeed. However it might conflict with our current system/how we parse and save, I see the value in this request. Worth another discussion with our team.

    Sebastien
     
    LudiKha likes this.
  4. LudiKha

    LudiKha

    Joined:
    Feb 15, 2014
    Posts:
    140
    Thanks both for your reply. I understand it is still very much in development, but hoping that we will be heading towards web standards where there is a lot of freedom for developers to annotate their files in the way they see fit, and source files don't get processed by the system.

    Cheers,

    - K
     
  5. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Any updates on this? -- I'm kinda tired of a lack of comments and formatting blasting my manual work.
    Maybe get some machine-learning involved?
     
    MousePods likes this.
  6. Molder

    Molder

    Joined:
    Aug 28, 2013
    Posts:
    5
    this .USS changes the background color of a ScrollView component's slider.

    .unity-scroller__slider > .unity-base-slider__input > .unity-base-slider__drag-container {
    background-color: rgb(5, 5, 5);
    }

    tell me how to remember it without a comment.
     
  7. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700