I have managed to create an AchievementMessageHandler in Unity, which, once the player earns a Message displays the Title / Name of the Achievement using following code:
Now I have been trying to retrieve the description of the Achievement as well, but none of the options in Unity for _message allow me to retrieve it.
The above Code will will return the Achievement (see image below): "Welcome! You just earned Welcome!"
Instead I would like it to say: "Welcome! Enjoy your stay with GSN"
So in the AchievementEarnedMessage I tried to change it (see image below), I saw that the field said "You just earned ${achievementName}" so I assumed that "${achievementDescription}" should return the description of the Achievement, it didn't. (I had changed it to achievementName at the time of the screenshot)
Can anyone tell me, how I could return the description for the achievement and where I can find more info about how the message codes work (like ${achievementName})
Best Answer
C
Customer Support
said
about 7 years ago
Hi Atathan,
The easy way to do it would be to set the achievements name to "Welcome! Enjoy your stay with GSN" and the default message to ${achievementName},although you would then have to configure the names for each achievement you create after this as the default is no longer "You just earned ${achievementName}". I'm not sure if ${achievementDescription} or anything else like it is usable, i'll look into this some more and get back to you.
The easy way to do it would be to set the achievements name to "Welcome! Enjoy your stay with GSN" and the default message to ${achievementName},although you would then have to configure the names for each achievement you create after this as the default is no longer "You just earned ${achievementName}". I'm not sure if ${achievementDescription} or anything else like it is usable, i'll look into this some more and get back to you.
Thanks,
Liam
A
Atahan Kiltan
said
about 7 years ago
Thanks, for the time being I will just set the Name to "Welcome!:Enjoy your stay with GSN" then split the text in Unity at the ' : '.
Atahan Kiltan
I have managed to create an AchievementMessageHandler in Unity, which, once the player earns a Message displays the Title / Name of the Achievement using following code:
Now I have been trying to retrieve the description of the Achievement as well, but none of the options in Unity for _message allow me to retrieve it.
The above Code will will return the Achievement (see image below):
"Welcome! You just earned Welcome!"
Instead I would like it to say: "Welcome! Enjoy your stay with GSN"
So in the AchievementEarnedMessage I tried to change it (see image below), I saw that the field said "You just earned ${achievementName}" so I assumed that "${achievementDescription}" should return the description of the Achievement, it didn't. (I had changed it to achievementName at the time of the screenshot)
Can anyone tell me, how I could return the description for the achievement and where I can find more info about how the message codes work (like ${achievementName})
Hi Atathan,
The easy way to do it would be to set the achievements name to "Welcome! Enjoy your stay with GSN" and the default message to ${achievementName},although you would then have to configure the names for each achievement you create after this as the default is no longer "You just earned ${achievementName}". I'm not sure if ${achievementDescription} or anything else like it is usable, i'll look into this some more and get back to you.
Thanks,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Atathan,
The easy way to do it would be to set the achievements name to "Welcome! Enjoy your stay with GSN" and the default message to ${achievementName},although you would then have to configure the names for each achievement you create after this as the default is no longer "You just earned ${achievementName}". I'm not sure if ${achievementDescription} or anything else like it is usable, i'll look into this some more and get back to you.
Thanks,
Liam
Atahan Kiltan
Thanks, for the time being I will just set the Name to "Welcome!:Enjoy your stay with GSN" then split the text in Unity at the ' : '.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics