[update] dynamic canvas sorting order by Bian-Sh · Pull Request #102 · yasirkula/UnitySimpleFileBrowser
你担心的下一个面板会拦住 SFB,因此设置了固定值 2016,但是我认为固定的还是不太好:
因为你不能保证用户不会用到大于 2016 的 renderOrder,因此:
- 如果用户面板的 RenderOrder = 2017 ,那么 SFB 就显示在此面板之下,但动态RenderOrder 能够解决这个问题。
- 你提到下一个面板会覆盖的困惑,但如果用户下一个面板 renderoder =2017 ,SFB 同样会被覆盖在新的面板下。
- 所以,为了下一个面板大几率能够正常展示,让我们取个折中措施:把 +1 变成 +2016
以下为 gpt 翻译/ translate by gpt below:
You are concerned that the next panel will block SFB, so you set a fixed value of 2016, but I think it is still not ideal:
Because you cannot guarantee that users will not use a renderOrder greater than 2016, so:
- If the user's panel has a RenderOrder = 2017, then SFB will be displayed below this panel, but dynamic RenderOrder can solve this problem.
- You mentioned confusion about the next panel covering, what if the user's next panel render order = 2017, SFB will also be covered under the new panel.
- Therefore, in order for the next panel to have a higher chance of displaying correctly, let's compromise: change +1 to +2016