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.

PlayerSettings

class in UnityEditor

/

Hereda de:Object

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

Player Settings is where you define various parameters for the final game that you will build in Unity. Some of these values are used in the Resolution Dialog that launches when you open a standalone game.

Variables Estáticas

accelerometerFrequencyFrecuencia de actualización del acelerómetro.
actionOnDotNetUnhandledExceptionSets the crash behavior on .NET unhandled exception.
advancedLicenseIs the advanced version being used?
allowedAutorotateToLandscapeLeftIs auto-rotation to landscape left supported?
allowedAutorotateToLandscapeRightIs auto-rotation to landscape right supported?
allowedAutorotateToPortraitIs auto-rotation to portrait supported?
allowedAutorotateToPortraitUpsideDownIs auto-rotation to portrait upside-down supported?
allowFullscreenSwitchIf enabled, allows the user to switch between full screen and windowed mode using OS specific keyboard short cuts.
aotOptionsAdditional AOT compilation options. Shared by AOT platforms.
apiCompatibilityLevelNivel de compatibilidad de la API de .NET
bakeCollisionMeshesPre bake collision meshes on player build.
bundleIdentifierApplication bundle identifier shared between iOS & Android platforms.
bundleVersionApplication bundle version shared between iOS & Android platforms.
captureSingleScreenDefines if fullscreen games should darken secondary displays.
cloudProjectIdA unique cloud project identifier. It is unique for every project (Read Only).
colorSpaceSet the rendering color space for the current project.
companyNameThe name of your company.
d3d11FullscreenModeDefine how to handle fullscreen mode in Windows standalones (Direct3D 11 mode).
d3d9FullscreenModeDefine how to handle fullscreen mode in Windows standalones (Direct3D 9 mode).
defaultInterfaceOrientationDefault screen orientation for mobiles.
defaultIsFullScreenIf enabled, the game will default to fullscreen mode.
defaultScreenHeightDefault vertical dimension of stand-alone player window.
defaultScreenWidthDefault horizontal dimension of stand-alone player window.
defaultWebScreenHeightDefault vertical dimension of web player window.
defaultWebScreenWidthDefault horizontal dimension of web player window.
displayResolutionDialogDefines the behaviour of the Resolution Dialog on product launch.
enableCrashReportAPIEnables CrashReport API.
enableInternalProfilerEnables internal profiler.
gpuSkinningEnable GPU skinning on capable platforms.
iPhoneBundleIdentifierThe bundle identifier of the iPhone application.
keyaliasPassPassword for the key used for signing an Android application.
keystorePassPassword used for interacting with the Android Keystore.
locationUsageDescriptionDescribes the reason for access to the user's location data.
logObjCUncaughtExceptionsAre ObjC uncaught exceptions logged?
macFullscreenModeDefine how to handle fullscreen mode in Mac OS X standalones.
MTRenderingIs multi-threaded rendering enabled?
productNameThe name of your product.
renderingPathWhich rendering path is enabled?
resizableWindowUse resizable window in standalone player builds.
resolutionDialogBannerThe image to display in the Resolution Dialog window.
runInBackgroundIf enabled, your game will continue to run after lost focus.
showUnitySplashScreenShould the builtin Unity splash screen be shown?
statusBarHiddenShould status bar be hidden. Shared between iOS & Android platforms.
stereoscopic3DShould player render in stereoscopic 3d on supported hardware?
stripEngineCodeRemove unused Engine code from your build (IL2CPP-only).
strippingLevelManaged code stripping level.
stripUnusedMeshComponentsShould unused Mesh components be excluded from game build?
use32BitDisplayBuffer32-bit Display Buffer is used.
useAnimatedAutorotationLet the OS autorotate the screen as the device orientation changes.
useMacAppStoreValidationHabilita la validación de recibo para la Mac App Store.
usePlayerLogWrite a log file with debugging information.
virtualRealitySplashScreenVirtual Reality specific splash screen.
virtualRealitySupportedEnable virtual reality support.
visibleInBackgroundOn Windows, show the application in the background if Fullscreen Windowed mode is used.
xboxDeployKinectHeadOrientationXbox 360 Kinect Head Orientation file deployment.
xboxDeployKinectHeadPositionXbox 360 Kinect Head Position file deployment.
xboxDeployKinectResourcesXbox 360 Kinect resource file deployment.
xboxEnableAvatarXbox 360 Avatars.
xboxEnableKinectXbox 360 Kinect title flag - if false, the Kinect APIs are inactive.
xboxEnableKinectAutoTrackingXbox 360 Kinect automatic skeleton tracking.
xboxEnableSpeechXbox 360 Kinect Enable Speech Engine.
xboxGenerateSpaXbox 360 auto-generation of _SPAConfig.cs.
xboxImageXexFilePathXbox 360 ImageXex override configuration file path.
xboxSpaFilePathXbox 360 SPA file path.
xboxSpeechDBXbox 360 Kinect Speech DB.
xboxSplashScreenXbox 360 splash screen.
xboxTitleIdXbox 360 title id.

Funciones Estáticas

GetGraphicsAPIsGet graphics APIs to be used on a build platform.
GetIconsForTargetGroupReturns the list of assigned icons for the specified platform.
GetIconSizesForTargetGroupReturns a list of icon sizes for the specified platform.
GetPropertyBoolReturns a PlayerSettings named bool property (with an optional build target it should apply to).
GetPropertyIntReturns a PlayerSettings named int property (with an optional build target it should apply to).
GetPropertyOptionalBoolSearches for property and assigns it's value to given variable.
GetPropertyOptionalIntSearches for property and assigns it's value to given variable.
GetPropertyOptionalStringSearches for property and assigns it's value to given variable.
GetPropertyStringReturns a PlayerSettings named string property (with an optional build target it should apply to).
GetScriptingDefineSymbolsForGroupGet user-specified symbols for script compilation for the given build target group.
GetUseDefaultGraphicsAPIsIs a build platform using automatic graphics API choice?
HasAspectRatioReturns whether or not the specified aspect ratio is enabled.
SetAspectRatioActiva la relación de aspecto especificada.
SetGraphicsAPIsSet graphics APIs to be used on a build platform.
SetIconsForTargetGroupAssign a list of icons for the specified platform.
SetPropertyBoolSets a PlayerSettings named bool property.
SetPropertyIntSets a PlayerSettings named int property.
SetPropertyStringSets a PlayerSettings named string property.
SetScriptingDefineSymbolsForGroupSet user-specified symbols for script compilation for the given build target group.
SetUseDefaultGraphicsAPIsShould a build platform use automatic graphics API choice.

Miembros heredados

Variables

hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

GetInstanceIDReturns the instance id of the object.
ToStringDevuelve el nombre del objeto.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateDevuelve el nombre del objeto.

Operadores

bool¿Existe el objeto?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.