Share an image automatic adaptation script

  • Creator version: 3.8

There is a square size adapter in the forum, which does not meet personal needs, so it is modified to adapt to any rectangle.
It can only be modified in the editor and directly mounted to the image node. If you need to modify it dynamically in the code, pass it into the node to modify it yourself.