This repository has been archived on 2025-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
Net.Like.Xue.Tokyo/Assets/Plugins/MeshCombineStudio/Scripts/Examples/CombineRuntime.cs

25 lines
431 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MeshCombineStudio
{
public class CombineRuntime : MonoBehaviour
{
public MeshCombiner meshCombiner;
public bool useSearchConditions = true;
public GameObject[] gos;
void Start()
{
Combine();
}
void Combine()
{
meshCombiner.searchOptions.parentGOs = gos;
meshCombiner.CombineAll(useSearchConditions);
}
}
}