AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.AdaptyCustomAssetLinearGradient Class Referencesealed

Custom asset representing a linear gradient. More...

Inheritance diagram for AdaptySDK.AdaptyCustomAssetLinearGradient:
AdaptySDK.AdaptyCustomAsset

Classes

class  Stop
class  Points

Package Functions

 AdaptyCustomAssetLinearGradient (Gradient gradient)

Properties

static string Type [get]
Gradient Gradient [get]
 The Unity Gradient.
List< StopValuesForRequest [get]
Points PointsForRequest [get]
 A Unity gradient always runs left to right over its full width.

Static Private Member Functions

static List< StopStops (Gradient gradient)
 Color keys and alpha keys are independent in a Unity Gradient: they may differ in count and sit at different times. Emit a stop at every key time of either channel and let Gradient.Evaluate resolve the RGBA there, so the serialized gradient matches what Unity renders.

Additional Inherited Members

Static Public Member Functions inherited from AdaptySDK.AdaptyCustomAsset
static AdaptyCustomAsset LocalImageData (byte[] data)
 Creates a custom asset from local image data.
static AdaptyCustomAsset LocalImageAsset (string assetId)
 Creates a custom asset from a local image asset ID.
static AdaptyCustomAsset LocalImageFile (string path)
 Creates a custom asset from a local image file path.
static AdaptyCustomAsset LocalVideoAsset (string assetId)
 Creates a custom asset from a local video asset ID.
static AdaptyCustomAsset LocalVideoFile (string path)
 Creates a custom asset from a local video file path.
static AdaptyCustomAsset Color (Color color)
 Creates a custom asset from a Unity Color.
static AdaptyCustomAsset LinearGradient (Gradient gradient)
 Creates a custom asset from a Unity Gradient.

Detailed Description

Custom asset representing a linear gradient.

Constructor & Destructor Documentation

◆ AdaptyCustomAssetLinearGradient()

AdaptySDK.AdaptyCustomAssetLinearGradient.AdaptyCustomAssetLinearGradient ( Gradient gradient)
package

Member Function Documentation

◆ Stops()

List< Stop > AdaptySDK.AdaptyCustomAssetLinearGradient.Stops ( Gradient gradient)
staticprivate

Color keys and alpha keys are independent in a Unity Gradient: they may differ in count and sit at different times. Emit a stop at every key time of either channel and let Gradient.Evaluate resolve the RGBA there, so the serialized gradient matches what Unity renders.

Property Documentation

◆ Gradient

Gradient AdaptySDK.AdaptyCustomAssetLinearGradient.Gradient
get

The Unity Gradient.

The request was read off it when the asset was built, so a gradient the caller keeps writing into - this one included - no longer changes what goes out.

◆ PointsForRequest

Points AdaptySDK.AdaptyCustomAssetLinearGradient.PointsForRequest
getprivate

A Unity gradient always runs left to right over its full width.

◆ Type

string AdaptySDK.AdaptyCustomAssetLinearGradient.Type
staticgetprivate

◆ ValuesForRequest

List<Stop> AdaptySDK.AdaptyCustomAssetLinearGradient.ValuesForRequest
getprivate

The documentation for this class was generated from the following file: