Horje
Unity upload image to project Code Example
Unity upload image to project
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEditor;
using System.IO;

public class OpenImagesplz : MonoBehaviour
{
    string path;
    public RawImage image;

    public void OpenExplorer()
    {
        path = EditorUtility.OpenFilePanel("Overwrite with png", "", "png");
        GetImage();
    }

    void GetImage()
    {
        if(path != null)
        {
            UpdateImage();
        }
    }
    void UpdateImage()
    {
        WWW www = new WWW("file:///" + path);
        image.texture = www.texture;
    }




Csharp

Related
set teh screen rect of camera unity Code Example set teh screen rect of camera unity Code Example
how to add an assembly reference in c# Code Example how to add an assembly reference in c# Code Example
no cameras rendering unity Code Example no cameras rendering unity Code Example
find first monday of every month algorithm c# Code Example find first monday of every month algorithm c# Code Example
how to use combo box to find age in c# Code Example how to use combo box to find age in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8