10using System.Collections.Generic;
20 private List<NamedTexture> packedTextures =
new List<NamedTexture>();
23 foreach (var tex
in packedTextures) {
26 packedTextures.Clear();
30 List<NamedTexture> newList =
new List<NamedTexture>();
31 Assert.AreEqual(textures.Length, propertyNames.Length);
33 for (
int i = 0; i < textures.Length; i++) {
35 propertyName = propertyNames[i],
40 foreach (var tex
in packedTextures) {
41 if (!newList.Query().Any(p => p.texture == tex.texture)) {
46 packedTextures = newList;
50 return packedTextures.Query().
51 FirstOrDefault(p => p.propertyName == propertyName).texture;
56 return packedTextures.Count;
61 for (
int i = packedTextures.Count; i-- != 0;) {
65 packedTextures.RemoveAt(i);
69 renderingMethod.PreventDuplication(ref tex);
71 packedTextures[i] = nt;
void Validate(LeapRenderingMethod renderingMethod)
void AssignTextures(Texture2D[] textures, string[] propertyNames)
Texture2D GetTexture(string propertyName)