Method Apply
Apply(Texture2D, MinFilterMode, MagFilterMode)
Applies the Sampler's settings to a Unity texture.
Declaration
public void Apply(Texture2D image, Sampler.MinFilterMode defaultMinFilter = MinFilterMode.Linear, Sampler.MagFilterMode defaultMagFilter = MagFilterMode.Linear)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | image | Texture to apply the settings to |
Sampler.MinFilterMode | defaultMinFilter | Fallback minification filter |
Sampler.MagFilterMode | defaultMagFilter | Fallback magnification filter |