Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSprite(int, Sprite)

Set the Sprite at the given index.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public void SetSprite(int index, Sprite sprite)

Parameters

index

The index of the Sprite being modified.

sprite

The Sprite being assigned.

Remarks