2015-09-15から1日間の記事一覧

How to recycle unity shuriken particle

private GameObject particleCache; if (particleCache == null) { particleCache = Instantiate (attackParticle, enemy.transform.position, Quaternion.identity) as GameObject; } else { // 再発火 particleCache.GetComponent<ParticleSystem>().Clear(); particleCach</particlesystem>…

How to affect point light to 2d sprite in Unity

Make a material Change the shader of the material to "Sprites/Diffuse"