-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from Unity-Technologies/dev
Prepare 2.1.0-preview.2
- Loading branch information
Showing
33 changed files
with
478 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Linq; | ||
using NUnit.Framework; | ||
using UnityEngine; | ||
using UnityEngine.Formats.Alembic.Importer; | ||
|
||
namespace UnityEditor.Formats.Alembic.Exporter.UnitTests | ||
{ | ||
class VisibilityTests | ||
{ | ||
// All the GUIDs in the visibility folder | ||
[TestCase("1416eaf458d8341cfacec4fa81fd0527", TestName = "CameraStaticVisibility")] | ||
[TestCase("98d61f23b1a66466f93ad970d9117b00", TestName = "xTranslateVisibilityAnim")] | ||
[TestCase("38a3731774e2041268d2d2a9d27b69af", TestName = "meshStaticVisibility")] | ||
[TestCase("13c41684e05b74a789421d803ab4cb08", TestName = "meshVisibilityAnim")] | ||
[TestCase("369d852cb291c4c6aa11efc087bf3d2b", TestName = "pointCloudStaticVisibility")] | ||
[TestCase("620c76eda38c746fb8547eaa4ce417c3", TestName = "pointCloudVisibilityAnim")] | ||
[TestCase("b9cfb1cc6cd254c569e584c36db8f1b2", TestName = "xFormStaticVisibility")] | ||
[TestCase("8611f071574ba40368ca1da3092d3e22", TestName = "xFormVisibilityAnim")] | ||
public void VisibilityProperty(string guid) | ||
{ | ||
var path = AssetDatabase.GUIDToAssetPath(guid); | ||
var asset = AssetDatabase.LoadMainAssetAtPath(path); | ||
var go = PrefabUtility.InstantiatePrefab(asset) as GameObject; | ||
var player = go.GetComponent<AlembicStreamPlayer>(); | ||
var abcNode = go.transform.GetChild(0).gameObject; | ||
player.UpdateImmediately(0); | ||
Assert.IsTrue(abcNode.activeSelf); | ||
|
||
player.UpdateImmediately(0.2f); | ||
Assert.IsFalse(abcNode.activeSelf); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
com.unity.formats.alembic/Tests/Editor/VisibilityTests.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+1.8 KB
...y.formats.alembic/Tests/Runtime/Data/visibility/camera_static_visibilityAnim_15_24fps.abc
Binary file not shown.
Oops, something went wrong.