C# Class ElementOnMapEditorMenu, PuzzleGameProject

Inheritance: MonoBehaviour
Show file Open project: Cedric-Paris/PuzzleGameProject

Public Properties

Property Type Description
gObject GameObject
rTransform UnityEngine.RectTransform
sRenderer SpriteRenderer

Public Methods

Method Description
Start ( ) : void

Processing performed by Unity when an instance is created. Retrieve the sprite of the gameObject (gObject) and applies it to SpriteRenderer sRenderer.

Method Details

Start() public method

Processing performed by Unity when an instance is created. Retrieve the sprite of the gameObject (gObject) and applies it to SpriteRenderer sRenderer.
public Start ( ) : void
return void

Property Details

gObject public property

Source GameObject for the sprite.
public GameObject gObject
return GameObject

rTransform public property

RectTransform of the gameObject that will receive the sprite.
public RectTransform,UnityEngine rTransform
return UnityEngine.RectTransform

sRenderer public property

SpriteRenderer of the gameObject that will receive the sprite.
public SpriteRenderer sRenderer
return SpriteRenderer