You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m experiencing an issue with a custom component attached to a node. When accessing the component locally using the getComponent method, it returns the expected component. However, when accessing the component remotely in a build from remote host, it returns null.
in the attached project - look at PrizeController --> const switcher2 = node.getComponent('NodeSwitchComponent');
Relevant error log output
null
Steps to reproduce
Attach a custom component to a node.
Access the component locally using getComponent - the component is retrieved correctly.
Access the component remotely (remote host!!!) in a build - getComponent returns null.
Cocos Creator version
3.8.3
System information
chrome, macos, windows
Issue description
I’m experiencing an issue with a custom component attached to a node. When accessing the component locally using the getComponent method, it returns the expected component. However, when accessing the component remotely in a build from remote host, it returns null.
in the attached project - look at PrizeController --> const switcher2 = node.getComponent('NodeSwitchComponent');
Relevant error log output
null
Steps to reproduce
Minimal reproduction project
test.zip
The text was updated successfully, but these errors were encountered: