public static void ShowWindow()
 {
     playgroundSettings = PlaygroundSettingsC.GetReference();
     playgroundLanguage = PlaygroundSettingsC.GetLanguage();
     window             = EditorWindow.GetWindow <PlaygroundPresetCategoryWindowC>(true, playgroundLanguage.presetManager);
     window.Show();
 }
Example #2
0
 public static void ShowWindow()
 {
     playgroundSettings = PlaygroundSettingsC.GetReference();
     playgroundLanguage = PlaygroundSettingsC.GetLanguage();
     window             = EditorWindow.GetWindow <PlaygroundCreatePresetWindowC>(true, playgroundLanguage.presetWizard);
     window.Show();
 }
Example #3
0
    public void OnEnable()
    {
        trails   = target as PlaygroundTrails;
        s_trails = new SerializedObject(trails);

        s_time = s_trails.FindProperty("time");

        s_material           = s_trails.FindProperty("material");
        s_lifetimeColor      = s_trails.FindProperty("lifetimeColor");
        s_colorMode          = s_trails.FindProperty("colorMode");
        s_uvMode             = s_trails.FindProperty("uvMode");
        s_pointArrayAlpha    = s_trails.FindProperty("pointArrayAlpha");
        s_renderMode         = s_trails.FindProperty("renderMode");
        s_billboardTransform = s_trails.FindProperty("billboardTransform");
        s_customRenderScale  = s_trails.FindProperty("customRenderScale");

        s_timeWidth  = s_trails.FindProperty("timeWidth");
        s_widthScale = s_trails.FindProperty("widthScale");

        s_minVertexDistance       = s_trails.FindProperty("minVertexDistance");
        s_maxVertexDistance       = s_trails.FindProperty("maxVertexDistance");
        s_maxPathDeviation        = s_trails.FindProperty("maxPathDeviation");
        s_createPointsOnCollision = s_trails.FindProperty("createPointsOnCollision");
        s_maxPoints = s_trails.FindProperty("maxPoints");
        s_createFirstPointOnParticleBirth = s_trails.FindProperty("createFirstPointOnParticleBirth");
        s_createLastPointOnParticleDeath  = s_trails.FindProperty("createLastPointOnParticleDeath");

        s_playgroundSystem = s_trails.FindProperty("playgroundSystem");
        s_multithreading   = s_trails.FindProperty("multithreading");

        s_receiveShadows = s_trails.FindProperty("receiveShadows");
#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7
        s_castShadows = s_trails.FindProperty("castShadows");
#else
        s_castShadows = s_trails.FindProperty("shadowCastingMode");
#endif
        s_layer = s_trails.FindProperty("layer");

        s_trails.Update();
        if (s_layer.intValue < 0)
        {
            s_layer.intValue = trails.playgroundSystem.gameObject.layer;
        }
        s_layer.intValue = Mathf.Clamp(s_layer.intValue, 0, 32);
#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
        s_trails.ApplyModifiedProperties();
#else
        s_trails.ApplyModifiedPropertiesWithoutUndo();
#endif
        playgroundSettings = PlaygroundSettingsC.GetReference();
        playgroundLanguage = PlaygroundSettingsC.GetLanguage();

        // Issue a quick refresh
        if (!EditorApplication.isPlaying && Selection.activeTransform != null)
        {
            trails.ResetTrails();
        }
    }
    void OnEnable()
    {
        spline = target as PlaygroundSpline;

        playgroundSettings = PlaygroundSettingsC.GetReference();
        playgroundLanguage = PlaygroundSettingsC.GetLanguage();

        lastActiveTool = UnityEditor.Tools.current;

        UpdateUserList();
    }
    void OnEnable()
    {
        playgroundLanguage = PlaygroundSettingsC.GetLanguage();

        brushPreset         = new SerializedObject(target);
        texture             = brushPreset.FindProperty("texture");
        presetName          = brushPreset.FindProperty("presetName");
        scale               = brushPreset.FindProperty("scale");
        detail              = brushPreset.FindProperty("detail");
        distance            = brushPreset.FindProperty("distance");
        spacing             = brushPreset.FindProperty("spacing");
        exceedMaxStopsPaint = brushPreset.FindProperty("exceedMaxStopsPaint");
    }
    public void OnEnable()
    {
        follow   = target as PlaygroundFollow;
        s_follow = new SerializedObject(follow);

        s_particles        = s_follow.FindProperty("particles");
        s_referenceObject  = s_follow.FindProperty("referenceObject");
        s_followerLifetime = s_follow.FindProperty("followerLifetime");
        s_cacheSize        = s_follow.FindProperty("cacheSize");
        s_sendEvents       = s_follow.FindProperty("sendEvents");

        playgroundSettings = PlaygroundSettingsC.GetReference();
        playgroundLanguage = PlaygroundSettingsC.GetLanguage();
    }
    void OnEnable()
    {
        // Set references
        recorder = target as PlaygroundRecorder;

        // Load settings
        playgroundSettings = PlaygroundSettingsC.GetReference();

        // Load language
        playgroundLanguage = PlaygroundSettingsC.GetLanguage();

        // Load data
        if (recorder.recorderData != null)
        {
            recorder.LoadAsync();
        }
        else
        {
            recorder.recordedFrames = new List <RecordedFrame>();
        }
    }
Example #8
0
 public static void ShowWindow()
 {
     playgroundLanguage = PlaygroundSettingsC.GetLanguage();
     window             = EditorWindow.GetWindow <PlaygroundCreateBrushWindowC>(true, playgroundLanguage.brushWizard);
     window.Show();
 }