📜  广告牌画布统一 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:21.102000             🧑  作者: Mango

代码示例1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BillboardFX : MonoBehaviour
{
    public Transform camTransform;

    Quaternion originalRotation;

    void Start()
    {
        originalRotation = transform.rotation;
    }

    void Update()
    {
         transform.rotation = camTransform.rotation * originalRotation;   
    }
}