|
AdaptySDK 4.1.1
|
Custom asset representing a linear gradient. More...
Classes | |
| class | Stop |
| class | Points |
Package Functions | |
| AdaptyCustomAssetLinearGradient (Gradient gradient) | |
Properties | |
| static string | Type [get] |
| Gradient | Gradient [get] |
| The Unity Gradient. | |
| List< Stop > | ValuesForRequest [get] |
| Points | PointsForRequest [get] |
| A Unity gradient always runs left to right over its full width. | |
Static Private Member Functions | |
| static List< Stop > | Stops (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. | |
Custom asset representing a linear gradient.
|
package |
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.
|
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.
|
getprivate |
A Unity gradient always runs left to right over its full width.
|
staticgetprivate |
|
getprivate |