Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created March 9, 2012 12:33
Show Gist options
  • Save anchan828/2006362 to your computer and use it in GitHub Desktop.
Save anchan828/2006362 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Example : MonoBehaviour
{
void Start ()
{
MaterialPropertyBlock mpb = new MaterialPropertyBlock ();
//赤色の情報を加える
mpb.AddColor ("_Color", Color.red);
renderer.SetPropertyBlock (mpb);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment