Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity3d Windows Phone Live互动程序_Unity3d_Windows Phone_Live Tile - Fatal编程技术网

Unity3d Windows Phone Live互动程序

Unity3d Windows Phone Live互动程序,unity3d,windows-phone,live-tile,Unity3d,Windows Phone,Live Tile,我们如何在Unity3d Windows Phone中实现live tile?? 我希望现场瓷砖显示当前的高分 我试过这个: #if UNITY_METRO UnityEngine.WSA.Tile liveTile = Tile.main; //then we update the tile with our latest high score //the first three strings are for images (medium,wide,large) //the last

我们如何在Unity3d Windows Phone中实现live tile?? 我希望现场瓷砖显示当前的高分

我试过这个:

    #if UNITY_METRO
UnityEngine.WSA.Tile liveTile = Tile.main;
//then we update the tile with our latest high score
//the first three strings are for images (medium,wide,large)
//the last string is for text to display
//you can also pass in an XML file to describe the tile
liveTile.Update("","","", "Best round time: " + PlayerPrefs.GetInt("angka", 0));
#endif

我不为Prime 31工作。我参加了Unity 5路演,发现Prime 31将免费赠送他们的Windows Phone和Store插件。不知道要多久,他们与微软达成了协议

他们在Metro Essentials插件中支持标题

下面是演示中包含的代码

    if( GUILayout.Button( "Update Application Live Tile (standard)" ) )
    {
        // first, create the tile data
        var tileData = new StandardTileData();
        tileData.backContent = "I'm on the back";
        tileData.backTitle = "BACK TITLE";
        tileData.title = "Live Tile Title";
        tileData.count = 12;

        // now update the tile
        Tiles.updateApplicationTile( tileData );
    }


    if( GUILayout.Button( "Create Live Tile (Flip)" ) )
    {
        // first, create the tile data
        var tileData = new FlipTileData();
        tileData.backContent = "Back of the Tile";
        tileData.backBackgroundImage = "http://upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Breastfeeding-icon-med.svg/202px-Breastfeeding-icon-med.svg.png";
        tileData.backTitle = "Back Title Here";
        tileData.backgroundImage = "http://cdn.memegenerator.net/instances/250x250/38333070.jpg";
        tileData.smallBackgroundImage = "Assets/Tiles/FlipCycleTileSmall.png";
        tileData.title = "Flip Tile Title";
        tileData.wideBackBackgroundImage = "http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-91-03-metablogapi/5775.WideTileAfter_5F00_49305C14.jpg";
        tileData.wideBackContent = "Wide Back Content";
        tileData.wideBackgroundImage = "Assets/Tiles/FlipCycleTileLarge.png";
        tileData.count = 3;

        // now update the tile
        Tiles.createOrUpdateSecondaryLiveTile( "flippy-tile", tileData );
    }


    if( GUILayout.Button( "Create Live Tile (Iconic)" ) )
    {
        // first, create the tile data
        var tileData = new IconicTileData();
        tileData.iconImage = "http://upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Breastfeeding-icon-med.svg/202px-Breastfeeding-icon-med.svg.png";
        tileData.backgroundColor = Prime31.WinPhoneEssentials.Color.colorFromARGB( 255, 40, 255, 40 );
        tileData.smallIconImage = "http://cdn.memegenerator.net/instances/250x250/38333070.jpg";
        tileData.wideContent1 = "Wide content 1";
        tileData.wideContent2 = "Wide content 2";
        tileData.wideContent3 = "Wide content 3";
        tileData.title = "Live Tile Title";
        tileData.count = 3;

        // now update the tile
        Tiles.createOrUpdateSecondaryLiveTile( "my-tile", tileData );
    }