ParticleSystem.textureSheetAnimation

매뉴얼로 전환
public ParticleSystem.TextureSheetAnimationModule textureSheetAnimation ;

설명

Script interface for the Particle System Texture Sheet Animation module.

Particle system modules do not need to be reassigned back to the system; they are interfaces and not independent objects.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { ParticleSystem ps = GetComponent<ParticleSystem>(); var ts = ps.textureSheetAnimation; ts.enabled = true; ts.numTilesX = 2; ts.useRandomRow = true; } }