public void UVChannelToIndex() { //null checks Assert.IsTrue(MeshChannelUtility.UVChannelToIndex(MeshChannel.Null) == -1); Assert.IsTrue(MeshChannelUtility.UVChannelToIndex(MeshChannel.UV0) == 0); Assert.IsTrue(MeshChannelUtility.UVChannelToIndex(MeshChannel.UV2) == 1); Assert.IsTrue(MeshChannelUtility.UVChannelToIndex(MeshChannel.UV3) == 2); Assert.IsTrue(MeshChannelUtility.UVChannelToIndex(MeshChannel.UV4) == 3); }
internal void SetAdditionalVertexStreams(Mesh vertexStreams) { m_PolyMesh.ApplyAttributesFromUnityMesh(vertexStreams, MeshChannelUtility.ToMask(vertexStreams)); SynchronizeWithMeshRenderer(); }