// Use this for initialization void Start() { Debug.Log(testText.text); textLoader = new TextLoader(testText.text); resourceLoader.Initialize(this); sounder = new SoundProcessor(); sounder.Initialize(resourceLoader); varProcessor = new VariableProcessor(); varProcessor.Initialize(textLoader); sceneProcessor = new SceneProcessor(); sceneProcessor.Initialize(this, resourceLoader); messenger.Initialize(textLoader, varProcessor); imager.Initialize(resourceLoader); processorList = new List <CommandProcessor>(); processorList.Add(messenger); processorList.Add(imager); processorList.Add(sounder); processorList.Add(varProcessor); processorList.Add(sceneProcessor); processIndex = -1; onEnd = false; }
private static void ExecuteAll() { if (!m_editorDialog.OpenYesNo("すべてのシーンの Skybox Material を null にしますか?")) { return; } SceneProcessor.ProcessAllScenes(OnProcess); m_editorDialog.OpenOk("すべてのシーンの Skybox Material を null にしました"); }
private static void ExecuteAll() { if (!m_editorDialog.OpenYesNo("すべてのシーンの Global Illumination を無効化しますか?")) { return; } SceneProcessor.ProcessAllScenes(OnProcess); m_editorDialog.OpenOk("すべてのシーンの Global Illumination を無効化しました"); }
// methods for drawing on canvas private void DrawingWO(WireObject wo, bool isClone) { WireObject projected_wo = null; Vector3 projection_vec; switch (lb_projection_type.SelectedIndex) { case 0: // test mode - orthographic projection (xy) projected_wo = SceneProcessor.PreparingOrthographicProjection(wo); projection_vec = SceneProcessor.orthographic_projection_vec; break; case 1: // first mode - "free projection" projected_wo = SceneProcessor.PreparingFreeProjection(wo); projection_vec = SceneProcessor.free_projection_vec; break; case 2: // second mode - isometric projection, angle = pi / 3 projected_wo = SceneProcessor.PreparingIsometricProjection(wo); projection_vec = SceneProcessor.isometric_projection_vec; break; default: logs.Add(new Log() { Time = DateTime.Now.ToString(), Action = "Drawing WO", Logs = "drawing skipped" }); // log action return; } // draw projection for (int i = 0; i < wo.Ridge.Count; i++) { if (wo.EdgeVisibility(wo.Ridge[i], projection_vec)) { CanvasArea.Children.Add(SceneProcessor.PreparatingLine(projected_wo.Ridge[i].Color, projected_wo.Ridge[i].P1.X, projected_wo.Ridge[i].P1.Y, projected_wo.Ridge[i].P2.X, projected_wo.Ridge[i].P2.Y, isClone)); } } logs.Add(new Log() { Time = DateTime.Now.ToString(), Action = "Drawing WO", Logs = projected_wo.Name + " are drawn" }); // log_action }
private static void ExecuteBy() { if (!m_editorDialog.OpenYesNo("Project Settings で設定されているシーンの Skybox Material を null にしますか?")) { return; } var settings = AllSceneSkyboxMaterialRemoverSettings.Load(); SceneProcessor.ProcessAllScenes ( scenePathFilter: scenePath => settings.ScenePathFilter.Any(x => scenePath.StartsWith(x)), onProcess: OnProcess ); m_editorDialog.OpenOk("Project Settings で設定されているシーンの Skybox Material を null にしました"); }
private static void ExecuteBy() { if (!m_editorDialog.OpenYesNo("Project Settings で設定されているシーンの Global Illumination を無効化しますか?")) { return; } var settings = AllSceneGlobalIlluminationDisablerSettings.Load(); SceneProcessor.ProcessAllScenes ( scenePathFilter: scenePath => settings.ScenePathFilter.Any(x => scenePath.StartsWith(x)), onProcess: OnProcess ); m_editorDialog.OpenOk("Project Settings で設定されているシーンの Global Illumination を無効化しました"); }