【unity】一行代码写功能(更新中)

1.判断VideoPlayer是否播放完毕

if(videoPlayer.frame== ((long)videoPlayer.frameCount-1))
{//...}

2.寻找挂有X.cs的隐藏子物体

GetComponentInChildren<X>(true);

猜你喜欢

转载自blog.csdn.net/makyocute/article/details/126765289