Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Add Dynamic Material Unity
IRCSS
Nov 18th, 2018
372
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C#
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
public
static
Material AddDynamicMaterial
(
GameObject gb, Shader sd
)
{
Renderer r
=
gb
.
GetComponent
<
Renderer
>
(
)
;
r
.
material
=
new
Material
(
r
.
material
)
;
return
r
.
material
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Crypto is in danger
CSS | 13 min ago | 0.85 KB
AI destroys crypto
CSS | 13 min ago | 0.85 KB
This is how to get a Lambo
CSS | 13 min ago | 0.85 KB
✅ 0 DAY Hacked
CSS | 14 min ago | 0.86 KB
How to hack an exchange
CSS | 14 min ago | 0.86 KB
✅ +12,000$ in 2 days
CSS | 14 min ago | 0.86 KB
✅ FREE COINS METHOD
CSS | 14 min ago | 0.85 KB
Crypto is in danger
CSS | 14 min ago | 0.83 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!