Hello guys,
I am writing a plugin to show an interstitial ads of inner active for my game.
It needs a parameter of content panel which is basically a grid to show the ads,
How do I access the main grid through my plugin?
Thanks.
Hello guys,
I am writing a plugin to show an interstitial ads of inner active for my game.
It needs a parameter of content panel which is basically a grid to show the ads,
How do I access the main grid through my plugin?
Thanks.
Hey,
one solution would be to have a public property of said grid exposed and setting it in MainPage.xaml.cs after the page initializes.
Can you please give me an example? All I need is to access from the plugin to a grid.
In plugin:
class MyPlugin
{
public static Grid ContentGrid { get; set; }
}
In mainpage.xaml.cs:
private void DrawingSurfaceBackground_Loaded(object sender, RoutedEventArgs e)
{
MyPlugin.ContentGrid = DrawingSurfaceBackground;
... // Rest of unity initialization code
}
Great, that worked, thanks.