/** * Copyright 1998-2013 Epic Games, Inc. All Rights Reserved. */ class SpriteComponent extends PrimitiveComponent native collapsecategories hidecategories(Object) editinlinenew; var() Texture2D Sprite; var() bool bIsScreenSizeScaled; var() float ScreenSize; var() float U, UL, V, VL; /** Sprite category that the component belongs to. Value serves as a key into the localization file. */ var editoronly name SpriteCategoryName; cpptext { virtual FPrimitiveSceneProxy* CreateSceneProxy(); virtual void UpdateBounds(); } /** Change the sprite texture used by this component */ simulated native function SetSprite(Texture2D NewSprite); /** Change the UVs used by this component */ simulated native function SetUV(int NewU, int NewUL, int NewV, int NewVL); /** Change the sprite texture and UVs used by this component */ simulated native function SetSpriteAndUV(Texture2D NewSprite, int NewU, int NewUL, int NewV, int NewVL); defaultproperties { Sprite=Texture2D'EditorResources.S_Actor' bIsScreenSizeScaled=false ScreenSize=0.1 U=0 V=0 UL=0 VL=0 SpriteCategoryName="Misc" }