docs.unity.cn
    Show / Hide Table of Contents

    Class Price

    Represents a price in a format that is serialized as both a decimal and a double.

    Inheritance
    Object
    Price
    Namespace: UnityEngine.Purchasing
    Syntax
    [Serializable]
    public class Price : ISerializationCallbackReceiver

    Fields

    value

    The price as a decimal.

    Declaration
    public decimal value
    Field Value
    Type Description
    Decimal

    Methods

    OnAfterDeserialize()

    Callback executed after Deserialization. Converts the raw data to a decimal and asigns it to value.

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Callback executed before Serialization. Converts value to raw data and to a double.

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 20 April 2021