コード例 #1
0
        protected override void ActionResult(string path)
        {
            List <Texture2D> textures = Mpo.GetMpoImages(path);

            if (textures != null)
            {
                MpoViewer.SetTextures(textures[0], textures[1]);
                ImagePreview.texture = textures[0];
            }
        }
コード例 #2
0
        void Start()
        {
            InitFileBrowser(FileType.Mpo);

            if (MpoViewer.GetTexture() == null)
            {
                // Initializes the viewer with default textures
                Texture left  = (Texture)Resources.Load("360Viewer/left");
                Texture right = (Texture)Resources.Load("360Viewer/right");
                MpoViewer.SetTextures(left, right);
            }

            ImagePreview.texture = MpoViewer.GetTexture();
        }