Skip to content

Instantly share code, notes, and snippets.

@IshidaGames
Created June 17, 2019 12:39
Show Gist options
  • Save IshidaGames/5ce0b566a5677089c578d52180e29d3d to your computer and use it in GitHub Desktop.
Save IshidaGames/5ce0b566a5677089c578d52180e29d3d to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//UI使うのに必要
using UnityEngine.UI;
//DOTween使うのに必要
using DG.Tweening;
public class ScreenColor : MonoBehaviour
{
public Image image;
void Start()
{
//Color(赤、緑、青、透明度)
//どれも数値は0~1まで
var color = new Color(1f, 0f, 1f, 0f);
//(色、かかる時間)
image.DOColor(color, 5f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment