Created
June 17, 2019 12:39
-
-
Save IshidaGames/5ce0b566a5677089c578d52180e29d3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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