Class Texture2DTiling
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Represents a texture along with configurable tiling parameters.
[Serializable]
public sealed class Texture2DTiling
- Inheritance
-
Texture2DTiling
- Inherited Members
- Extension Methods
Remarks
This class is meant for inspector values, especially ones that help configure shaders, such as in post-processing code.
This class stores a Texture2D and provides scale and offset values for UV tiling. It can optionally adjust the horizontal scale to match the current screen aspect ratio.
Properties
- CalculatedTiling
Gets the effective tiling values, optionally adjusting the horizontal scale based on screen aspect ratio.
- Texture
Gets the texture.
- Tiling
Gets the tiling scale and offset combined into a single vector in the format: (scale.x, scale.y, offset.x, offset.y).
- TilingOffset
Gets the tiling offset.
- TilingScale
Gets the tiling scale.