Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Social

class in UnityEngine

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

Acceso genérico al Social API.

Social.Active can be used to target a specific social platform implementation, but by default GameCenter is used on iOS. All other platforms default to the Local implementation which can be used for testing. See Social API Reference Manual for an overview.

The Social class should always be used as an entry point. It contains helper functions for accessing the current active implementation and always uses the interfaces of the other Social API classes. This way it is easier to use versions of the interfaces which have been extended beoynd the generic API by the implementation. There are varoius classes accociated with the Social API and all of these reside in the UnityEngine.SocialPlatforms namespace. You need to import/use this namespace in order to use these classes.
See Also: GameCenterPlatform.

Variables Estáticas

ActiveThis is the currently active social platform.
localUserThe local user (potentially not logged in).

Funciones Estáticas

CreateAchievementCrear una instancia de IAchievement.
CreateLeaderboardCrear una instancia de ILeaderboard.
LoadAchievementDescriptionsLoads the achievement descriptions accociated with this application.
LoadAchievementsLoad the achievements the logged in user has already achieved or reported progress on.
LoadScoresLoad a default set of scores from the given leaderboard.
LoadUsersLoad the user profiles accociated with the given array of user IDs.
ReportProgressReports the progress of an achievement.
ReportScoreReport a score to a specific leaderboard.
ShowAchievementsUIShow a default/system view of the games achievements.
ShowLeaderboardUIShow a default/system view of the games leaderboards.