internal void AddTextureInfo(List <PropertyCollector.TextureInfo> infos) { for (int layer = 0; layer < value.layers.Count; layer++) { string layerRefName = value.layers[layer].layerRefName; var layerTexture = value.layers[layer].layerTexture; var textureInfo = new PropertyCollector.TextureInfo { name = layerRefName, textureId = (layerTexture != null && layerTexture.texture != null) ? layerTexture.texture.GetInstanceID() : 0, modifiable = true }; infos.Add(textureInfo); } }
internal void AddTextureInfo(List <PropertyCollector.TextureInfo> infos) { for (int layer = 0; layer < value.layers.Count; layer++) { string layerRefName = value.layers[layer].layerRefName; var layerTexture = value.layers[layer].layerTexture; var texture = layerTexture != null ? layerTexture.texture : null; var textureInfo = new PropertyCollector.TextureInfo { name = layerRefName, textureId = texture != null?texture.GetInstanceID() : 0, dimension = texture != null ? texture.dimension : UnityEngine.Rendering.TextureDimension.Any, modifiable = true }; infos.Add(textureInfo); } }