//--------------------------------------------------------------------- // Helpers //--------------------------------------------------------------------- private void CustomGUILayout() { // Rate now RateMeDialog.DrawRateDialog(AssetInfo.ASSET_NAME, AssetInfo.ASSET_STORE_ID); // Skybox EditorGUILayout.Space(); EditorGUILayout.PropertyField(_skyboxMaterial); EditorGUILayout.Space(); SkyGUILayout(); EditorGUILayout.Space(); StarsGUILayout(); EditorGUILayout.Space(); SunGUILayout(); EditorGUILayout.Space(); MoonGUILayout(); EditorGUILayout.Space(); CloudsGUILayout(); EditorGUILayout.Space(); GeneralGUILayout(); EditorGUILayout.Space(); }
//--------------------------------------------------------------------- // Helpers //--------------------------------------------------------------------- private void CustomGUILayout() { var skyboxController = SkyboxController.Instance; // Rate now RateMeDialog.DrawRateDialog(AssetInfo.ASSET_NAME, AssetInfo.ASSET_STORE_ID); // Settings SkyGUILayout(); StarsGUILayout(skyboxController.StarsEnabled); SunGUILayout(skyboxController.SunEnabled); MoonGUILayout(skyboxController.MoonEnabled); CloudsGUILayout(skyboxController.CloudsEnabled); }
//--------------------------------------------------------------------- // Helpers //--------------------------------------------------------------------- private void CustomGUILayout() { var skyboxController = SkyboxController.Instance; if (skyboxController == null) { EditorGUILayout.Space(); EditorGUILayout.HelpBox("This component requires the SkyboxController instance to be present in the scene. Please add the SkyboxController prefab to your scene.", MessageType.Error); return; } // Rate dialog RateMeDialog.DrawRateDialog(AssetInfo.ASSET_NAME, AssetInfo.ASSET_STORE_ID); EditorGUILayout.Space(); SkyGUILayout(); StarsGUILayout(skyboxController.StarsEnabled); SunGUILayout(skyboxController.SunEnabled); MoonGUILayout(skyboxController.MoonEnabled); GeneralGUILayout(); }