Mateusz Osuch: The Infamous Issue Of Unity's Nested Prefabs

Mateusz Osuch: The Infamous Issue Of Unity's Nested Prefabs

Digital Dragons

7 лет назад

399 Просмотров

ave you ever wondered how to irritate somebody who’s working for Unity Technologies? Ask them about the nested prefabs!
The speech explains the nature of the infamous nested prefabs issue and presents a few possible workarounds. The bad ones, the ugly ones and the good ones. Both, available on Asset Store and developed inhouse at Vile Monarch during work on ‘Crush Your Enemies’, ‘Oh… Sir! – The Insult Simulator’ and new, unannounced project.
The lecture is intended for semi-experienced and experienced programmers and technical designers working with the Unity Engine who want to optimize their pipelines for medium-size and bigger projects.
Ссылки и html тэги не поддерживаются


Комментарии:

@ace100hyper3
@ace100hyper3 - 16.06.2017 13:42

The CSS-inspired solution is approached in the wrong way. In their solution, they have to search all the scenes and also inside the prefabs that may not be in any scene (this gets a bit tricky). The proper solution to this problem is to have an "overwriter". It's a component that you attach to an element that you want to overwrite the properties of, in this case a text element. This in turn has a scriptable object field that will take the configuration that will be the same across all buttons. When the overwriter Start()-s, it will GetComponent<> of a specific component that it wants to overwrite and take the values from a scriptable object and apply them to that component.

Ответить