Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using System.Collections;
public class ShurikenEffectScale : MonoBehaviour
// Awake
void Awake()
// mul scale to particles
var particles = this.gameObject.GetComponentsInChildren<ParticleSystem>();
for( int i=0; i < particles.Length; ++i )
particles[ i ].startSize *= m_Scale;
// member
public float m_Scale = 1.0f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment