Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 plugin 的 js 里 无法获得 DynamicAtlasManager 的实例 #18106

Open
finscn opened this issue Jan 1, 2025 · 1 comment
Open

在 plugin 的 js 里 无法获得 DynamicAtlasManager 的实例 #18106

finscn opened this issue Jan 1, 2025 · 1 comment
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented Jan 1, 2025

Cocos Creator version

3.8.4

System information

all

Issue description

在线文档 https://docs.cocos.com/creator/3.8/manual/zh/advanced-topics/dynamic-atlas.html#enable-and-disable-dynamic-atlas
里 提供的方法 在项目的 ts里是可以的. 但是在 插件的js里 无法获得 DynamicAtlasManager 的实例

js 里 cc.DynamicAtlasManagercc.dynamicAtlasManager 都不存在.
要使用 cc.internal.dynamicAtlasManager 才行. 但是 这个 internal 不是不推荐直接使用吗?

从源码的注释来看:
image

是推荐使用 cc.DynamicAtlasManager.instance 的 . 但是 DynamicAtlasManager 没有被正确导出

所以在 js 里无法安全的修改 dynamicAtlasManager 参数.

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels Jan 1, 2025
@minggo
Copy link
Contributor

minggo commented Jan 7, 2025

是推荐使用 cc.DynamicAtlasManager.instance 的 . 但是 DynamicAtlasManager 没有被正确导出

是的, 我们看一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants