看了一下unity5.6的新功能 以及Timeline


3月31日unity5.6發布,然而timeline(前sequence模塊)被delay到unity 2017。上個星期官方又發布了unity 2017的beta版本

抽空看了下

(unity5.6 官方介紹鏈接:https://blogs.unity3d.com/cn/2017/03/31/5-6-is-now-available-and-completes-the-unity-5-cycle)

 

 

 

1.Physics Debugger

 

用於可視化調試場景中的物理組件,其中Hide系列開關都是針對特殊高亮的

他只會隱藏高亮,而不會真正隱藏對象。

 

 

 

2.Test Runner集成運行模式測試

 

這個之前的單元測試插件就有,叫做集成測試,不過很不好用。

大概感覺是有一些改動,對比一下:

 

新版本(Editor/Play模式都是直接協程了):

public class NewEditModeTest {

    [Test]
    public void NewEditModeTestSimplePasses() {
        // Use the Assert class to test conditions.
    }

    // A UnityTest behaves like a coroutine in PlayMode
    // and allows you to yield null to skip a frame in EditMode
    [UnityTest]
    public IEnumerator NewEditModeTestWithEnumeratorPasses() {
        // Use the Assert class to test conditions.
        // yield to skip a frame
        yield return null;
    }
}

 

舊版本:

public class NewEditorTest {

    [Test]
    public void EditorTest() {
        //Arrange
        var gameObject = new GameObject();

        //Act
        //Try to rename the GameObject
        var newGameObjectName = "My game object";
        gameObject.name = newGameObjectName;

        //Assert
        //The object has a new name
        Assert.AreEqual(newGameObjectName, gameObject.name);
    }
}

 

 

 

3.Video API

這是一個很重要的新功能

播放游戲過場動畫時,不需要MovieTexture,你只需要把外部視頻的鏈接丟進去即可

這樣可以省下許多中間轉換的時間

並且諸如廣告牌這樣的效果,你不需要手動創建RenderTexture,只需要設置幾個參數就可以附着到Mesh上。

 

 

Profile中也有了視頻播放相關參數,應該不是一次性加載到內存中的

不知道有沒有達到Bink級,不過應該是不需要插件了。

 

 

4.其他改動

開放NavMesh API,支持Vulkan等等。不贅述

 

 

5.Timline(Unity2017)

一個新的大坑

可以支持各種自定義Track,以及和Playable的組合。

默認自帶了5種Track

 

如果直接去官方下載unity2017 beta直接就集成了Timeline

(另外unity2017 beta實驗性的支持 .net4.6。目前一些語法糖已測試

異步因為沒有Task,應該是不支持)

 

官方論壇的Timeline模塊介紹&教程:

https://forum.unity3d.com/threads/timeline-experimental-preview-release-1.455265/

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM