메뉴 건너뛰기

게임 커뮤니티 4브론즈

게임 개발 뉴스

In the fast-paced world of game development, creating an engaging user interface (UI) is just as crucial as refining game mechanics or crafting stunning visuals. A well-designed UI serves as the bridge between players and the experience you've crafted – it can make or break immersion. As games grow in complexity, the need for intuitive, responsive UIs and the ability to display dynamic data become increasingly important. Unity 6 focuses on accelerated UI development, providing tools that simplify the UI creation process, allowing teams to bring their ideas to life faster and with greater impact.Unity 6 brings significant improvements to UI Toolkit. Whether you’re working on an expansive open-world RPG or an indie passion project, the toolkit streamlines workflows, optimizes rapid iteration, and reduces production times. By tackling the most common UI challenges – such as managing complex hierarchies, addressing performance bottlenecks, and enabling extensive customization – Unity 6 makes designing UIs more intuitive, flexible, and, most importantly, enjoyable.Key features of UI Toolkit in Unity 6Unity 6's UI Toolkit introduces powerful new features that streamline UI development, enhance customization, and help you create dynamic, engaging user experiences. Let's explore the highlights:Runtime data bindingThe new runtime data binding is a powerful feature that seamlessly connects UI elements with your game data at runtime. With it, developers can link variables, properties, and collections directly to UI components without writing extensive boilerplate code. This drastically reduces the manual work required to keep UI elements in sync with the underlying game state, making building responsive and dynamic interfaces effortless.Runtime data bindings can be set directly from the UI Builder, making the workflow accessible for team members using codeless tools and enabling better collaboration. They are also extensible, letting developers create converters between value types and implement custom binding types. Additionally, runtime data bindings can be tweaked to achieve optimal performance, ensuring your game’s UI remains efficient and responsive.Expanded UI controls libraryThe expanded UI Toolkit standard library provides even more built-in options for designing your UI. Recent additions like the TreeView and multicolumn ListView, introduced in 2022 LTS, facilitated the migration from IMGUI to UI Toolkit and are essential for managing and displaying large datasets.This version introduces the TabView and ToggleButtonGroup. Buttons now have icon support, which can be displayed with or without accompanying text. These new controls are not limited to the Editor; they are also available for the runtime environment and are fully customizable to match the aesthetic of your game, ensuring a consistent and immersive player experience.Improved extensibilityThe extensibility of UI Toolkit has seen major upgrades, especially for creating custom controls and exposing them to the UI Builder. Developers can now create custom UI controls more easily, integrating them seamlessly for drag-and-drop design. This upgrade makes it easier for teams to build reusable, tailored components, saving development time and boosting creativity.Gone are the days of writing boilerplate code with UXMLFactories and UXMLTraits, which are now deprecated and will be removed in future versions. The new approach involves simply decorating your C# code with [UXMLElement] and [UXMLAttribute] attributes — making custom control definition more straightforward, concise, and maintainable. Please refer to the Unity manual for creating custom UI controls using this new method.Enhanced control configurationUnity 6 also enhances how custom components are exposed and configured in the UI Builder, with support for property drawers and decorators, similar to those found in the Editor Inspector. These additions give developers complete control over how UI element attributes are exposed, providing UI designers with a more intuitive and efficient experience when adjusting properties. The result is polished, highly customizable interfaces that look great and function smoothly.UXMLObjects for efficient data managementUXMLObjects provide a flexible way to define and manage serialized data directly within UXML files. This feature allows developers to create reusable, self-contained UI components that maintain readability, even with large data structures.UXMLObjects enable UI elements to contain serialized data that can be stored and edited directly in the UI Builder, making it easier to reuse elements across different parts of the UI while preserving their data integrity. Designers can edit these data structures visually, streamlining workflows for data-driven UI components.This feature is useful for creating structured, reusable data elements in UIs, such as configuring data for visualizations like pie charts. By serializing data within UXMLObjects, developers can maintain an organized and modular approach to UI design, making the process of managing large and dynamic data sets more efficient.Advanced text and localization featuresUI Toolkit now includes multi-language and emoji support, made possible by an optional text generator offering comprehensive Unicode and advanced text shaping capabilities. This ensures that your UI seamlessly supports various languages, including right-to-left (RTL) scripts like Arabic and Hebrew, providing true multilingual capabilities.This new text backend is entirely opt-in, allowing developers to transition at their own pace while benefiting from enhanced localization. Though there are some limitations — documented in the manual — the system is a powerful tool for broadening the reach of your project.The updated Localization Package allows developers to fully leverage the new multi-language support and easily localize UI Toolkit content, making games accessible in multiple languages. Integrating with the new bindings system allows this feature to be accessible directly from the UI Builder, resulting in a seamless and efficient workflow for multilingual projects.Streamlined workflowsUnity 6 introduces several workflow improvements to make UI development faster and more intuitive. These updates allow developers to iterate quickly and make designing more efficient.Search in the control libraryThe control library can become difficult to navigate, especially for complex projects with a large number of UI elements and custom controls. This update adds a fast and intuitive search capability within the control library, allowing quick access to UI elements. It works both in the Standard and the Project section, making it easier to find what you need.Extract inline styles to selectorYou now have more control over extracting inline styles, with the ability to extract specific values and apply them to an existing selector, not just create a new one. It significantly reduces the need for duplicating inline edits on a selector and allows for more experimentation with changes on a single element before "committing" them to a selector.Fill attribute for slidersSliders now have a fill attribute to extend their functionality and create visual elements such as volume controls, health bars, and more. The attribute enables a filled-in area for the slider, with an option to select the fill color. This new attribute is also supported in code, for example:Performance enhancementsUnity 6 introduces a wide array of performance improvements to ensure a smooth and responsive experience in both the Editor and runtime environments:Event dispatching: Event dispatching rules have been simplified, making them easier to understand and twice as fast.Mesh generation enhancements: Key improvements include jobified geometry generation for classic element geometry and a transition of the vector API to a native implementation. Text generation is also now parallelized.Custom Geometry API: A new public API enables developers to generate custom geometry with the same level of performance, allowing for highly optimized UI components.Deep Hierarchy Layout Performance: Improved caching of layout computations significantly boosts performance in deep hierarchies, providing a smoother user experience.Optimized TreeView for Large Datasets: The TreeView control, previously inefficient with large datasets, has been enhanced with a new high-performance backend specifically for Entities.For tips on optimizing content created with UI Toolkit, refer to this breakout session from Unite 2024.We’re committed to keeping performance front and center. Look for even more optimizations in future updates that ensure Unity remains the best platform for creating responsive, high-performing user interfaces.ConclusionUnity 6 offers a host of new features and improvements that will significantly enhance your ability to create sophisticated, high-quality UIs. Whether you're an indie developer or part of a larger studio, the advancements in performance, workflow, and customization are designed to help you push the boundaries of what's possible.Get started and learnIf you want to get started with UI Toolkit, start by exploring our full documentation and tutorials, and join our community to gain inspiration from others and to share your projects.You can learn UI Toolkit concepts with QuizU or explore a complete game sample with UI Toolkit Dragon Crashers. Don’t miss the companion pieces to the samples:QuizU Discussions articles for programmers in mind and video overview of the sampleE-book, User interface design and implementation in Unity and video overview of the sample


원문출처 : https://unity.com/blog/unity-6-ui-toolkit-updates
번호 제목 글쓴이 날짜 조회 수
공지 자동수집 대상 사이트 KanoT 2023.02.05 289
» [Unity 블로그] Unity 6 UI Toolkit: News and updates 뉴스봇 2024.11.19 1
283 [Unity 블로그] Our complete guide to setting up version control for your team – now for Unity 6 뉴스봇 2024.11.19 0
282 [Unity 블로그] Extend Your Holiday Success: Q5 Strategies for Mobile User Acquisition 뉴스봇 2024.11.15 16
281 [Unity 블로그] Unity 6 graphics learning resources 뉴스봇 2024.11.15 3
280 [Unity 블로그] Get hundreds of tips from new Unity 6 optimization guides for console, PC, mobile, web, and XR 뉴스봇 2024.11.13 20
279 [Unity 블로그] Get the biggest edition yet of our URP e-book, now updated for your Unity 6 projects 뉴스봇 2024.11.04 11
278 [Unity 블로그] Games made with Unity: Horror games 뉴스봇 2024.10.29 6
277 [Unity 블로그] The 16th Unity Awards: Tune in for our first-ever live stream! 뉴스봇 2024.10.22 9
276 [Unity 블로그] Advertiser's Playbook to Win the 2024 Holiday Season 뉴스봇 2024.10.22 9
275 [Unity 블로그] Unity 6 launches today! 뉴스봇 2024.10.17 6
274 [Unity 블로그] Unity 6 is here: See what's new 뉴스봇 2024.10.17 8
273 [Unity 블로그] Unity Editor Software Terms Update: Runtime Fee cancellation 뉴스봇 2024.10.10 31
272 [Unity 블로그] Games made with Unity: September 2024 뉴스봇 2024.10.09 39
271 [Unity 블로그] 15 Muse Chat techniques for better results with prompting and attachments 뉴스봇 2024.09.27 105
270 [Unity 블로그] Unite 2024: Celebrating with our community, a look ahead, and the 16th Unity Awards 뉴스봇 2024.09.24 82
269 [Unity 블로그] Unite Keynote summary: A peek inside Unity 6 뉴스봇 2024.09.19 37
268 [Unity 블로그] A message to our community: Unity is canceling the Runtime Fee 뉴스봇 2024.09.12 80
267 [Unity 블로그] Games made with Unity: August 2024 in Review 뉴스봇 2024.08.29 171
266 [Unity 블로그] How BMW is leveraging Unity to open up new dimensions for the driving experience 뉴스봇 2024.08.14 136
265 [Unity 블로그] Break into real-time 3D industries with Unity’s Elevate program 뉴스봇 2024.08.09 174
위로