public bool FindTextureStack(int propertyIndex, out string stackName, out int layerIndex) { Shader.CheckPropertyIndex(this, propertyIndex); ShaderPropertyType propertyType = this.GetPropertyType(propertyIndex); bool flag = propertyType != ShaderPropertyType.Texture; if (flag) { throw new ArgumentException("Property type is not Texture."); } return(Shader.FindTextureStackImpl(this, propertyIndex, out stackName, out layerIndex)); }