示例#1
0
 /// <summary>
 /// Generates the LODs for this object.
 /// </summary>
 /// <param name="statusCallback">The status report callback.</param>
 public void GenerateLODs(LODStatusReportCallback statusCallback = null)
 {
     if (levels != null)
     {
         LODGenerator.GenerateLODs(gameObject, levels, statusCallback);
     }
     generated = true;
 }
示例#2
0
 /// <summary>
 /// Resets the LODs for this object.
 /// </summary>
 public void ResetLODs()
 {
     LODGenerator.DestroyLODs(gameObject);
     generated = false;
 }