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

希望能导出 render-draw-info.ts 文件中的类型 , 以及StaticVBAccessor 类型 和 IBatcher 接口, 在项目中对引擎进行扩展时需要. #18258

Open
finscn opened this issue Jan 26, 2025 · 1 comment
Labels
Feature Request Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented Jan 26, 2025

Use Case

希望在项目里 写自己的 Assembler 时需要这些东西:
RenderDrawInfo
RenderDrawInfoType
RenderEntityType
RenderEntity
以及
StaticVBAccessor
IBatcher(接口)

现在需要用类似 cc.__private._cocos_2d.xxxxxxxxxx 的方式才能使用这些类型 (声明类型).

但是如果要使用对应的值(类)时 , 会报错

TypeError: Cannot read property '_cocos_2d_renderer_render_draw_info__RenderDrawInfo' of undefined

TypeError: Cannot read property '_cocos_2d_renderer_render_draw_info__RenderDrawInfoType' of undefined

Problem Description

如上

Proposed Solution

No response

How it works

No response

Alternatives Considered

.

Additional Information

No response

@finscn finscn added Feature Request Needs Triage Needs to be assigned by the team labels Jan 26, 2025
@finscn finscn changed the title 希望能导出 render-draw-info.ts 文件中的类型 , 以及 IBatcher 接口, 在项目中对引擎进行扩展时需要. 希望能导出 render-draw-info.ts 文件中的类型 , 以及StaticVBAccessor 类型 和 IBatcher 接口, 在项目中对引擎进行扩展时需要. Jan 26, 2025
@9romise
Copy link
Contributor

9romise commented Feb 3, 2025

同,还有

__private._extensions_ccpool_node_pool__IPoolHandlerComponent

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

No branches or pull requests

2 participants