mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-30 02:52:14 +00:00
23 lines
507 B
C#
23 lines
507 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Raindrop.UI.views
|
|
{
|
|
// [RequireComponent(typeof(Image))]
|
|
public class ImageDisplayView : MonoBehaviour
|
|
{
|
|
private ImageDisplayController control;
|
|
|
|
private void Awake()
|
|
{
|
|
control = new ImageDisplayController(this);
|
|
}
|
|
|
|
public void InitializeView()
|
|
{
|
|
var image = GetComponent<RawImage>();
|
|
image.texture = Texture2D.blackTexture;
|
|
}
|
|
}
|
|
} |