-
-
Save todorok1/eced384f25d0fd90930bfad42a575a1a to your computer and use it in GitHub Desktop.
メッシュとマテリアルを結合するサンプルの宣言部分です。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <Summary> | |
/// メッシュとマテリアルを結合するクラスです。 | |
/// </Summary> | |
public class MeshMaterialCombiner : MonoBehaviour | |
{ | |
// フィールドパーツの親オブジェクトのTransformです。 | |
public Transform fieldParent; | |
/// <Summary> | |
/// 結合ボタンが押された時のメソッドです。 | |
/// </Summary> | |
public void OnPressedCombineMaterialButton() | |
{ | |
CombineMeshWithMaterial(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment