Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Selectable.targetGraphic

Switch to Manual
public var targetGraphic: UI.Graphic;

Description

Graphic that will be transitioned upon.

#pragma strict
// Required when Using UI elements.
public var newImage;
public var btnMain;
function SomeFunction() {
	//Displays the sprite transitions on the image when the transition to Highlighted,pressed or disabled is made.
	btnMain.targetGraphic = newImage;
}