Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created January 3, 2021 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/eced384f25d0fd90930bfad42a575a1a to your computer and use it in GitHub Desktop.
Save todorok1/eced384f25d0fd90930bfad42a575a1a to your computer and use it in GitHub Desktop.
メッシュとマテリアルを結合するサンプルの宣言部分です。
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