Files
Cielonos/Assets/External VFXs/MasterStylizedFX/Scripts/BillBoardParticle.cs

22 lines
517 B
C#
Raw Normal View History

2025-12-17 04:19:38 -05:00
using UnityEngine;
using System.Collections;
namespace MasterStylizedExplosion
{
[ExecuteInEditMode]
public class BillBoardParticles : MonoBehaviour
{
public bool bTurnOver = false;
void OnWillRenderObject()
{
if (Camera.main)
{
if (bTurnOver)
transform.forward = Camera.main.transform.forward;
else
transform.forward = -Camera.main.transform.forward;
}
}
}
}