void DrawBackgroundTexture( Texture texture, Length defaultSize )

Summary

Draws a texture using this panel's CSS box styling (border radius, border image, background position/size, tint, blend mode, filter mode, etc.) and adds the resulting descriptor to F:Sandbox.UI.Panel.CachedDescriptors.

This is intended for controls like UI.Image, UI.ScenePanel, and UI.SvgPanel that render a texture as their primary content while respecting the panel's CSS properties. For simple texture drawing without CSS styling, use M:Sandbox.UI.Panel.Draw.Texture(Sandbox.Texture,Sandbox.Rect,System.Nullable{Color}) instead.

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.