How to quickly adapt to the safe zone of IPHONEX in old Cocos2dx games

  1. the project uses CoccosBuilder and there seems to be no way to set constraint values.
  2. getSafeAreaRect slowly invokes one adaptation. So many interfaces are a little unscientific.
  3. look at most of the Internet is adapted to the full-screen security zone, leaving black edges on both sides.
  4. ask for advice from the great gods. Thanks.
Mar.03,2021

is inexplicable?

Menu