Advertisement

为Unity开发一个处理不可回收的GameObject和Component引用的测试

阅读量:

在Unity2018.2.19f编辑器环境下进行测试

进行以下测试:

无负载情况,增加如下内容:

插入Test脚本:

复制代码
 using System;

    
 using UnityEngine;
    
  
    
 public class Test : MonoBehaviour
    
 {
    
  
    
     public sealed class GCWatcher
    
     {
    
     private int m_startCount;
    
     public int Count { get; private set; }

全部评论 (0)

还没有任何评论哟~