Announcement

Collapse
No announcement yet.

Problems extending GameViewportClient

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems extending GameViewportClient

    HI

    I'm trying to create a custom GameViewportClient. I can get one to work fine in PIE/PC & the mobile previewer without any warnings/errors. However, when I run the app on a device it just crashes immediately after playing the UDK movie.

    I've stripped my code down to it's simplest form to try and narrow down the problem - the following code just draws a semi-transparent square in the top left corner of the screen after everything has been rendered.

    Code:
    class Test_ViewportClient extends GameViewportClient;
    
    event PostRender(Canvas Canvas)
    {
    	super.PostRender(Canvas);
    
    	Canvas.SetDrawColor(0, 128, 0, 128);
    	Canvas.SetPos(0,0);
    	Canvas.DrawRect(Canvas.SizeX/2.0,Canvas.SizeY/2.0);		
    
    }
    
    DefaultProperties
    {
    }
    & in DefaultEngine.ini

    Code:
    [Engine.Engine]
    GameViewportClientClassName=Project1.Test_ViewportClient
    Commenting out the ini file setting uses the normal GameViewportClient & my app runs fine.

    Any ideas what's going on?

    Cheers
    William

    #2
    did you found any solution to it.

    because I am having the same problem

    Comment

    Working...
    X