Cocos creator modifies EditorBox, removes the input history display of EditorBox, cocos creator shields the history display of input box

 

cocos creator 3.3.2

Modifying the history of EditorBox requires modifying the engine source code

Find the engine source code installed here C:\CocosDashboard_1.0.11\resources\.editors\Creator\3.3.2\resources\resources\3d\engine\cocos\ui\editbox\edit-box-impl.ts

this file

This is to set the size of the input box after clicking to get the focus. Here, the input is realized by using html tags

 

elem.autocomplete is to set the display and closure of history

elem.style.paddingLeft is for me to move the input box to the right

In this way, the input history display can be removed, and the project can be packaged directly after modification, without the need for a packaging engine

 

Guess you like

Origin blog.csdn.net/github_38633141/article/details/124023243