AngeliA
Search Results for

    Show / Hide Table of Contents

    Class CellScreenshotSystem

    Core system to take screenshot based on rendering cells and save them into file

    Properties

    Count

    Screenshot data count inside the current system

    Declaration
    public static int Count { get; }

    Methods

    DeleteScreenshot(int, bool)

    Delete screenshot from system list at given index

    Declaration
    public static void DeleteScreenshot(int index, bool dontDeleteLocked = true)
    bool dontDeleteLocked

    True if skip the locked ones

    DrawScreenshot(Screenshot, IRect, Color32, int, int, bool)

    Render given screen shot on screen

    Declaration
    public static void DrawScreenshot(CellScreenshotSystem.Screenshot screenshot, IRect rect, Color32 tint, int z = 0, int layer = 7, bool fit = true)
    Parameters
    Type Name Description
    CellScreenshotSystem.Screenshot screenshot

    Screenshot data

    IRect rect

    Global range to display this screenshot

    Color32 tint

    Color tint

    int z

    Z value for sort rendering cells

    int layer

    Rendering layer to draw into. Use RenderLayer.XXX to get this value.

    bool fit

    True if resize the result without changing the aspect ratio

    DrawScreenshot(Screenshot, IRect, FRect, Color32, int, int, bool)

    Render given screen shot on screen

    Declaration
    public static void DrawScreenshot(CellScreenshotSystem.Screenshot screenshot, IRect rect, FRect sourceRange, Color32 tint, int z = 0, int layer = 7, bool fit = true)
    Parameters
    Type Name Description
    CellScreenshotSystem.Screenshot screenshot

    Screenshot data

    IRect rect

    Global range to display this screenshot

    FRect sourceRange

    Which part of the screenshot should be display. ((0, 0, 1, 1) means all of them. (0, 0, 0.5, 1) means left half of them)

    Color32 tint

    Color tint

    int z

    Z value for sort rendering cells

    int layer

    Rendering layer to draw into. Use RenderLayer.XXX to get this value.

    bool fit

    True if resize the result without changing the aspect ratio

    DrawScreenshot(Screenshot, IRect, FRect, int, int, bool)

    Render given screen shot on screen

    Declaration
    public static void DrawScreenshot(CellScreenshotSystem.Screenshot screenshot, IRect rect, FRect sourceRange, int z = 0, int layer = 7, bool fit = true)
    Parameters
    Type Name Description
    CellScreenshotSystem.Screenshot screenshot

    Screenshot data

    IRect rect

    Global range to display this screenshot

    FRect sourceRange

    Which part of the screenshot should be display. ((0, 0, 1, 1) means all of them. (0, 0, 0.5, 1) means left half of them)

    int z

    Z value for sort rendering cells

    int layer

    Rendering layer to draw into. Use RenderLayer.XXX to get this value.

    bool fit

    True if resize the result without changing the aspect ratio

    DrawScreenshot(Screenshot, IRect, int, int, bool)

    Render given screen shot on screen

    Declaration
    public static void DrawScreenshot(CellScreenshotSystem.Screenshot screenshot, IRect rect, int z = 0, int layer = 7, bool fit = true)
    Parameters
    Type Name Description
    CellScreenshotSystem.Screenshot screenshot

    Screenshot data

    IRect rect

    Global range to display this screenshot

    int z

    Z value for sort rendering cells

    int layer

    Rendering layer to draw into. Use RenderLayer.XXX to get this value.

    bool fit

    True if resize the result without changing the aspect ratio

    GetScreenshot(int)

    Get screenshot from system list at given index.

    Declaration
    public static CellScreenshotSystem.Screenshot GetScreenshot(int index)

    RequireTakeScreenshot(IRect, int)

    Take screenshot at given range in global space when all cells at this frame is rendered. Result will be saved into system list.

    Declaration
    public static void RequireTakeScreenshot(IRect cameraRange, int delay = 0)
    int delay

    Time delay in frame

    SetScreenshotLock(int, bool)

    Lock/unlock screenshot in system list at given index

    Declaration
    public static void SetScreenshotLock(int index, bool locked)

    TakeScreenshotImmediately(IRect, bool)

    Take screenshot at given range in global space no matter rendering cells are all exists for current frame

    Declaration
    public static CellScreenshotSystem.Screenshot TakeScreenshotImmediately(IRect cameraRange, bool saveToSystem = true)
    bool saveToSystem

    True if save this screenshot into system list

    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค