文章目录 ftrace介绍开启ftraceftrace使用ftrace跟踪指定内核函数ftrace跟踪指定pid ftrace原理ftrace与stracetrace-cmd 工具KernelShark参考 ftrace介绍 Ftrace is an internal tracer designed to help out developers and designers of systems to find what is going on i…
方法一:直接在软件操作给物体添加AudioSource组件
方式二:用脚本控制
软件添加AudioSource 音频文件拖入脚本 脚本附体物体上执行脚本 脚本代码
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewTest: MonoBehaviour…