/// <summary>Gets the brush resource as a texture 2D.</summary> public static UTexture2D GetBrushResourceAsTexture2D(out FSlateBrush Brush) { IntPtr ___ret = GetBrushResourceAsTexture2D(IntPtr.Zero, out Brush); if (___ret == IntPtr.Zero) { return(null); } UTexture2D ___ret2 = new UTexture2D() { _this = ___ret }; return(___ret2); }
/// <summary>Change the sprite texture used by this component</summary> public void SetSprite(UTexture2D NewSprite) { CheckIsValid(); SetSprite(_this.Get(), NewSprite); }
/// <summary>Change the sprite texture and the UV's used by this component</summary> public void SetSpriteAndUV(UTexture2D NewSprite, int NewU, int NewUL, int NewV, int NewVL) { CheckIsValid(); SetSpriteAndUV(_this.Get(), NewSprite, NewU, NewUL, NewV, NewVL); }
/// <summary>Exports a Texture2D as a HDR image onto the disk.</summary> public static void ExportTexture2D(UObject WorldContextObject, UTexture2D Texture, string FilePath, string FileName) { ExportTexture2D(IntPtr.Zero, WorldContextObject, Texture, FilePath, FileName); }
public void SetBrushFromTexture(UTexture2D Texture) { CheckIsValid(); SetBrushFromTexture(_this.Get(), Texture); }
public extern void SetBrushFromTexture(UTexture2D Texture, bool bMatchSize = false);
/// <summary>Change the sprite texture and the UV's used by this component</summary> public extern virtual void SetSpriteAndUV(UTexture2D NewSprite, int NewU, int NewUL, int NewV, int NewVL);
/// <summary>Change the sprite texture used by this component</summary> public extern virtual void SetSprite(UTexture2D NewSprite);
public extern void SetBrushFromTexture(UTexture2D Texture);
/// <summary> /// Creates a Slate Brush from a Texture2D /// @param Width When less than or equal to zero, the Width of the brush will default to the Width of the Texture /// @param Height When less than or equal to zero, the Height of the brush will default to the Height of the Texture /// @return A new slate brush using the texture. /// </summary> public static FSlateBrush MakeBrushFromTexture(UTexture2D Texture, int Width = 0, int Height = 0) { FSlateBrush ___ret = MakeBrushFromTexture(IntPtr.Zero, Texture, Width, Height); return(___ret); }
/// <summary>Sets the resource on a brush to be a UTexture2D.</summary> public static void SetBrushResourceToTexture(out FSlateBrush Brush, UTexture2D Texture) { SetBrushResourceToTexture(IntPtr.Zero, out Brush, Texture); }
/// <summary> /// Copies the contents of a render target to a UTexture2D /// Only works in the editor /// </summary> public static void ConvertRenderTargetToTexture2DEditorOnly(UObject WorldContextObject, UTextureRenderTarget2D RenderTarget, UTexture2D Texture) { ConvertRenderTargetToTexture2DEditorOnly(IntPtr.Zero, WorldContextObject, RenderTarget, Texture); }
public void SetBrushFromTexture(UTexture2D Texture, bool bMatchSize = false) { CheckIsValid(); SetBrushFromTexture(_this.Get(), Texture, bMatchSize?1:0); }
/// <summary> /// Creates a Slate Brush from a Texture2D /// @param Width When less than or equal to zero, the Width of the brush will default to the Width of the Texture /// @param Height When less than or equal to zero, the Height of the brush will default to the Height of the Texture /// @return A new slate brush using the texture. /// </summary> public extern static FSlateBrush MakeBrushFromTexture(UTexture2D Texture, int Width = 0, int Height = 0);
/// <summary>Sets the resource on a brush to be a UTexture2D.</summary> public extern static void SetBrushResourceToTexture(out FSlateBrush Brush, UTexture2D Texture);
/// <summary>Exports a Texture2D as a HDR image onto the disk.</summary> public extern static void ExportTexture2D(UObject WorldContextObject, UTexture2D Texture, FString FilePath, FString FileName);