Struct DynamicClampCellScope
Scope that clamp rendering cells inside given range by changing the size scale of the content
Implements
Examples
using AngeliA;
namespace AngeliaGame;
public class Example {
[OnGameUpdate]
internal static void OnGameUpdate () {
var range = new IRect();
using (new DynamicClampCellScope(range)) {
// Rendering cell created inside will be clamped by rescale
}
}
}
Constructors
DynamicClampCellScope(IRect)
Scope that clamp rendering cells inside given range by changing the size scale of the content
Declaration
public DynamicClampCellScope(IRect rect)
Parameters
Type | Name | Description |
---|---|---|
IRect | rect | Rect position in global space |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()