Search Unity

How can we get Evas_Object for active Unity window in Tizen?

Discussion in 'Tizen' started by skaljac, Feb 8, 2017.

  1. skaljac

    skaljac

    Joined:
    Apr 9, 2015
    Posts:
    33
    Hi,

    I would like to show Status bar in my app for Tizen made with Unity.
    Documentation state that I have to set this:

    elm_win_indicator_mode_set(winObj, ELM_WIN_INDICATOR_SHOW);

    but winObj is active evas window and I can't get info about active evas window from Tizen API.
    Is there any way to access Untiy evas windows from plugin?

    Thanks!
     
  2. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
    Do you need access from native or managed code? From managed code you can use
    UnityEngine.Tizen.Window.windowHandle
     
    skaljac likes this.
  3. skaljac

    skaljac

    Joined:
    Apr 9, 2015
    Posts:
    33
    I am making shared library in native code.
    But I will try this solution for managed code also.

    Thank you Masterfalcon!
     
  4. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    5.6.0p1 enabled ELM_WIN_INDICATOR_SHOW as default.
     
  5. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    I'm actually looking to get it from native code. I want to draw on a material/texture that is in the game from inside my shared plugin. So I need to pass somehow as a Evas_Object or similar pointer to a call on the plugin like plugin.drawhere(myrenderer or sharedmateriaor whatever it should be);
     
  6. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81