• This project
    • Loading...
  • Sign in

I_Jemin / Unity-OpenVR-Shooter-Template

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Unity-OpenVR-Shooter-Template
  • Assets
  • OpenVR-Shooter
  • Scripts
  • DemoScript
  • ColorChanage.cs
  • I_Jemin's avatar
    Done: VR Eye UI interaction · dcd644a8 ...
    dcd644a8
    Add demo object for VR eye interaction
    I_Jemin authored 2017-12-03 15:48:14 +0900
ColorChanage.cs 365 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ColorChanage : MonoBehaviour {

	public Image target;

	public void SetWhite()
	{
		target.color = Color.white;
	}

	public void SetRed()
	{
		target.color = Color.red;
	}

	public void SetRandomColor()
	{
		target.color = Random.ColorHSV();
	}
}