更新
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user