Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Get particle's Texture Sheet Animation frame

Discussion in 'Scripting' started by PanicEnsues, Dec 9, 2019.

  1. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    185
    Is there any way to query an individual particle's current Texture Sheet Animation frame? There's no Property or Method for it; but if I could access the card mesh for the particle, I could determine it from the uvs. But I don't see a way to get a single particle's mesh, either...
     
  2. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    400
  3. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    185
    Right, that lets you set the start frame for the entire system; but I'm looking for the start frame of an individual particle, using ParticleSystem.GetParticles.
     
  4. kripsonud

    kripsonud

    Joined:
    Nov 7, 2019
    Posts:
    5
    Hello PanicEnsues, where you able to figure this out?
     
  5. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    185
    No, I never found a way to get or set an individual particle's texture animation frame. But I wound up abandoning the system I wanted it for (particle tree builder) for other limitations anyway.