개발생활/Unity Engine
Unity IAP Product Local price
한국인맛집
2020. 12. 2. 17:36
반응형
스토어에 등록된 가격을 메타 데이터로 가격을 현지화 할수 있다.
public class Test : MonoBehaviour , IStoreListener{
public static IStoreController = m_storeController;
string itemId = "item-number-1";
void Start(){
IAP1Text = GameObject.Find ("IAP1Text").GetComponent<Text>();
IAP1Text.text=m_StoreController.products.WithID(itemId).metadata.localizedPrice.ToString();
}
}
forum.unity.com/threads/solved-unity-iap-get-item-price.391448/
[Solved] Unity IAP get item price
How do I get the price and currency of an IAP item in my game? I did this tutorial...
forum.unity.com
반응형