Coder Social home page Coder Social logo

plyoung / uielements Goto Github PK

View Code? Open in Web Editor NEW
336.0 4.0 31.0 767 KB

Various scripts related to Unity UI Toolkit (UIElements).

License: The Unlicense

C# 96.49% ShaderLab 3.51%
unity uitoolkit uielements tooltips color-picker glass-effect blur-backgrounds unity3d

uielements's People

Contributors

plyoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

uielements's Issues

AspectRatioPadding error

For clarity we can say there is 2 versions of this script

  1. the "margin" version, which is the one in the code
  2. the "additional element" padding version, which is commented out

This might be a Unity 2022.2 beta issue, but when setting width & height to 100%, and flex shrink to 0, right margin no longer registers correctly. However, commenting those 3 lines out and adding style.flexGrow = 1 will get right margin working, HOWEVER Unity starts throwing errors:

"Layout update is struggling to process current layout (consider simplifying to avoid recursive layout)"

I have not noticed any other issues with my UI or performance even with these errors.
So either
A) Unity needs to fix the right margin working with 100% width & height, & 0 shrink
B) User Disable or Unity Fix the unnecessary error dump
C) If A and B is Unity working correctly, then we need to figure out new code to get the margin version working
D) or going back to the "additional element" version which is what I've resorted to

edit: Reason for using Unity 2022.2 beta is getting ready for ECS 1.0. It's the only way to use ECS 1.0 at the moment.

No Slider2D

it does not compile, there is no such class Slider2D. Did you forget to push a class?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.