Project Settings

Download

Unity Cheat Sheet: #43

Player Settings

  • Access code backend with PlayerSettings.GetScriptingBackend(BuildTargetGroup targetGroup)
  • Change code backend with PlayerSettings.SetScriptingBackend(BuildTargetGroup targetGroup, ScriptingImplementation backend)
  • Check CPU architecture with PlayerSettings.GetArchitecture(BuildTargetGroup targetGroup)
  • Set CPU architecture with PlayerSettings.SetArchitecture(BuildTargetGroup targetGroup, int architecture)
  • Optimize build size with PlayerSettings.stripEngineCode
  • Control network access with PlayerSettings.Android.forceInternetPermission
  • Handle large apps with PlayerSettings.Android.useAPKExpansionFiles
  • Configure network behavior with PlayerSettings.iOS.requiresPersistentWiFi
  • Manage security settings with PlayerSettings.iOS.allowHTTPDownload

Physics & Simulation

  • Set world gravity with Physics.gravity
  • Adjust simulation accuracy with Physics.defaultSolverIterations
  • Fine-tune velocity resolution with Physics.defaultSolverVelocityIterations
  • Control collision detection with Physics.IgnoreLayerCollision(int layer1, int layer2, bool ignore)
  • Configure raycast behavior with Physics.queriesHitTriggers
  • Toggle physics updates with Physics.autoSimulation
  • Prevent tunneling with Physics.defaultContactOffset
  • Set impact response with Physics.bounceThreshold
  • Optimize inactive objects with Physics.sleepThreshold
  • Improve performance with Physics.reuseCollisionCallbacks

Application

  • Access version number with Application.version
  • Get product name with Application.productName
  • Access developer info with Application.companyName
  • Check engine version with Application.unityVersion
  • Detect runtime platform with Application.platform
  • Control frame timing with Application.targetFrameRate
  • Check connectivity with Application.internetReachability
  • Request user permissions with Application.RequestUserAuthorization(UserAuthorization mode)
  • Configure debugging with Application.SetStackTraceLogType(LogType logType, StackTraceLogType stackTraceType)

Quality Settings

  • Control display sync with QualitySettings.vSyncCount
  • Adjust edge smoothing with QualitySettings.antiAliasing
  • Optimize shadow rendering with QualitySettings.shadowDistance
  • Balance detail levels with QualitySettings.lodBias
  • Manage memory usage with QualitySettings.masterTextureLimit
  • Toggle advanced lighting with QualitySettings.realtimeReflectionProbes
  • Control light count with QualitySettings.pixelLightCount
  • Enable particle effects with QualitySettings.softParticles

Audio Settings

  • Check audio quality with AudioSettings.outputSampleRate
  • Sync with audio clock using AudioSettings.dspTime
  • Access system setup with AudioSettings.GetConfiguration()
  • Get 3D audio plugin with AudioSettings.GetSpatializerPluginName()
  • Set 3D audio plugin with AudioSettings.SetSpatializerPluginName()
  • Configure speaker layout with AudioSettings.speakerMode

Input System

  • Enable touch testing with Input.simulateMouseWithTouches
  • Support multiple fingers with Input.multiTouchEnabled
  • Check hardware capabilities with Input.touchPressureSupported

Show More