Loader (GLoader)

Author: Gu Zhu

1-1

  • Src — Image resource or an atlas resource representing a frame sequence animation.
  • Is Demo — The Src content is only for demonstration in the IDE. It will automatically be cleared when published.
  • Align — Horizontal and vertical alignment.
  • Fit Mode — Adaptation mode:

    • None — No scaling. The image retains its original size.
    • Fill — Stretch to fill the container’s display area.
    • Contain — Scale the image proportionally so it fits entirely within the container. May leave empty spaces.
    • Cover — Scale the image proportionally to fill the entire container. Parts may overflow if the aspect ratio does not match.
    • Cover Width — Similar to Cover, but width is strictly fit. Height may overflow.
    • Cover Height — Similar to Cover, but height is strictly fit. Width may overflow.
  • Shrink Only — If checked, the image will not be enlarged regardless of the Fit Mode.
  • Color — Image color.
  • Mesh — Provides a custom mesh for the renderer. See the Mesh property description of images.
  • Animation — If Src is an animation resource, animation settings can be configured here. See GMovieClip settings for details.
Copyright ©Layabox 2025 all right reserved,powered by LayaAir EngineUpdate: 2025-10-10 18:52:20

results matching ""

    No results matching ""