RenderTarget
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Lay out frames, text and pictures as you would in a window, then save them as a PNG or use them as a texture, with no window shown.
UIObjects are parented to it as to a Window and are laid out and drawn the same way, but it never opens. RenderAsync waits until every Icon and font has loaded, then draws once with no easing. Scale 2 or 4 draws supersampled and filters down on save, and BackgroundTransparency 1 gives a transparent PNG. Contact sheets, labelled sprite sheets, thumbnails and cards come from the same objects you lay out on screen.
Made with Instance.new("RenderTarget") or Clone().
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Size | Vector2 | The picture's size in pixels. | |
| Scale | number | 1 by default; 2 or 4 draws supersampled and box-filters down on save. | |
| BackgroundColor | Color3 | ||
| BackgroundTransparency | number | 1 makes a transparent PNG. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| RenderAsync yields | () | (GpuTexture?, string?) | Waits until every Icon and font has loaded, then draws once with no easing, as if everything used Transition.None. |
| SaveAsync yields | (path: string | PathHandler) | (boolean, string?) | Saves the picture as a PNG. |
From ScreenItem 2
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
