Announcement

Collapse
No announcement yet.

MobileMenuObject - OwnerScene is None

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

    MobileMenuObject - OwnerScene is None

    I cannot be certain, but it appears to be a issue with this Build of the Engine.
    Does everyone using the MobileMenuScene/Object classes get this error?

    Code:
    class GameMenuScene extends MobileMenuScene;
    
    DefaultProperties
    {
    Begin Object Class=MobileMenuButton Name=SampleButton Tag="SampleButton" Left=0 Top=0 Width=140 Height=24 TopLeeway=20 Images(0)=Texture2D'ProjectUI.T_SampleButton_Up' Images(1)=Texture2D'ProjectUI.T_SampleButton_Down' End Object MenuObjects.Add(SampleButton)
    }
    When I run the game I get the following error in the Log:
    Code:
    [0290.27] ScriptWarning: Accessed None 'OwnerScene'
    	MobileMenuButton Project.Default__GameMenuScene:SampleButton

    #2
    Okay guys.
    I found the issue. The issue was in that I was creating the GameMenuScene with a BEGIN OBJECT statement.
    I should have just used the OpenMenuScene method of MobilePlayerInput.

    Comment

    Working...
    X