Closed jwu closed 10 years ago
动态添加到场景中的 Sprite Font 并不会在场景中出现。
重现方法:
得 sheeptap2 dev 最新版本, 打开 UniteDemo2 这个场景。羊跳跃时点击。对比 Game View 场景和 2D Scene View 场景。
错误的显示:
正确的显示:
更有趣的是:如果将 hitscore 这个prefab 拖入到场景中,加入任意layer, 比如 effect 这个 layer 然后运行游戏,可以看到 Scene View 里正确显示,但是 Game View 里仍然不显示。
动态添加到场景中的 Sprite Font 并不会在场景中出现。
重现方法:
得 sheeptap2 dev 最新版本, 打开 UniteDemo2 这个场景。羊跳跃时点击。对比 Game View 场景和 2D Scene View 场景。
错误的显示:
正确的显示:
更有趣的是:如果将 hitscore 这个prefab 拖入到场景中,加入任意layer, 比如 effect 这个 layer 然后运行游戏,可以看到 Scene View 里正确显示,但是 Game View 里仍然不显示。