Exemple #1
0
        public void Validate(LeapRenderingMethod renderingMethod)
        {
            for (int i = meshes.Count; i-- != 0;)
            {
                Mesh mesh = meshes[i];
                if (mesh == null)
                {
                    meshes.RemoveAt(i);
                    continue;
                }

                renderingMethod.PreventDuplication(ref mesh);
                meshes[i] = mesh;
            }
        }
        public void Validate(LeapRenderingMethod renderingMethod)
        {
            for (int i = packedTextures.Count; i-- != 0;)
            {
                NamedTexture nt  = packedTextures[i];
                Texture2D    tex = nt.texture;
                if (tex == null)
                {
                    packedTextures.RemoveAt(i);
                    continue;
                }

                renderingMethod.PreventDuplication(ref tex);
                nt.texture        = tex;
                packedTextures[i] = nt;
            }
        }