Open 3D Engine LyShineExamples Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
LyShineExamples::UiCustomImageComponent Class Reference

#include <UiCustomImageComponent.h>

Inherits AZ::Component, UiVisualBus::Handler, UiRenderBus::Handler, UiCustomImageBus::Handler, and UiTransformChangeNotificationBus::Handler.

Public Member Functions

 AZ_COMPONENT (UiCustomImageComponent, "{466B78EC-A85C-4112-A89D-FF2D7EDE650E}", AZ::Component)
 
void ResetOverrides () override
 
void SetOverrideColor (const AZ::Color &color) override
 
void SetOverrideAlpha (float alpha) override
 
void SetOverrideSprite (ISprite *sprite, AZ::u32 cellIndex=0) override
 
void Render (LyShine::IRenderGraph *renderGraph) override
 
AZ::Color GetColor () override
 
void SetColor (const AZ::Color &color) override
 
ISprite * GetSprite () override
 
void SetSprite (ISprite *sprite) override
 
AZStd::string GetSpritePathname () override
 
void SetSpritePathname (AZStd::string spritePath) override
 
UVRect GetUVs () override
 
void SetUVs (UVRect uvs) override
 
bool GetClamp () override
 
void SetClamp (bool clamp) override
 
void OnCanvasSpaceRectChanged (AZ::EntityId entityId, const UiTransformInterface::Rect &oldRect, const UiTransformInterface::Rect &newRect) override
 
void OnTransformToViewportChanged () override
 

Detailed Description

This component is an example of how to implement a custom component. It is a simple image component that takes UV coordinates instead of image and sprite types.


The documentation for this class was generated from the following file: