/*
		 * Draw in inspector
		 */
		public void drawInspector()
		{
			PlatformProperties platformProperties = m_platform.getPlatformProperties();

			DistributionsPlatformRenderer distributionsPlatformRenderer = new DistributionsPlatformRenderer(platformProperties.getDistributionPlatformList());
			distributionsPlatformRenderer.drawInspector();

			GUILayout.Space(20f);

			if (platformProperties.isUsingPlatformArchitecture())
			{
				GUIUtils.DrawCategoryLabel("Architectures");
				foreach (PlatformArchitecture platformArchitecture in platformProperties.getPlatformArchitectureList())
				{
					platformArchitecture.isActive = EditorGUILayout.ToggleLeft(platformArchitecture.name, platformArchitecture.isActive);
				}
				
				GUILayout.Space(20f);
			}

			if (platformProperties.isUsingTextureCompression())
			{
				GUIUtils.DrawCategoryLabel("Textures Compression");
				foreach (ITextureCompression textureCompression in platformProperties.getTextureCompressionList())
				{
					textureCompression.getTextureProperties().isActive = EditorGUILayout.ToggleLeft(textureCompression.getTextureProperties().name, textureCompression.getTextureProperties().isActive);
				}
			}
			
			
			GUILayout.Space(10f);
			
				
			if (GUIUtils.DrawDeleteRedButton("Delete platform"))
			{
				platformProperties.setSupported(false);
				m_updateAvailablePlatformListAction();
			}
		}
		/*
		 * Check for warnings and errors
		 */
		public void checkWarningsAndErrors(ErrorReporter errorReporter)
		{
			PlatformProperties platformProperties = m_platform.getPlatformProperties();

			DistributionsPlatformRenderer distributionsPlatformRenderer = new DistributionsPlatformRenderer(platformProperties.getDistributionPlatformList());
			distributionsPlatformRenderer.checkWarningsAndErrors(errorReporter);

			if (platformProperties.getActivePlatformArchitectureList().Count == 0)
			{
				errorReporter.addWarning("No build will be performed for the platform '" + platformProperties.name + "'\nYou must select at least one platform architecture for this platform.");
			}
			else if (platformProperties.getActiveTextureCompressionList().Count == 0)
			{
				errorReporter.addWarning("No build will be performed for the platform '" + platformProperties.name + "'\nYou must select at least one texture compression for this platform.");
			}

			if (m_platformAdditionalRenderer != null)
			{
				m_platformAdditionalRenderer.checkWarningsAndErrors(errorReporter);
			}
		}