Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Sign in to follow this  
tho89

Blinking Material Object (JS)

Recommended Posts

Hello,
Here is a simple script for blinking the material object and to see the object in the black :).

 

How to use:

Added script on the object which the mesh renderer and create a new material self-illumin.

Put the main material of the object in difmaterial and the material self-illumin in lightmaterial.

Please login or register to see this code.

or on a gameObject different which does not contain mesh renderer with this script

Please login or register to see this code. Edited by tho89
  • Like 2

Share this post


Link to post
Share on other sites

I try your script...

but I get an parsing error... Oo

 

Assets/Scripts/NewBehaviourScript.cs(1,17): error CS8025: Parsing error

 

Sry but I have no programming skills... :-/

Just copy&past... ;--pp

 

Maybe you can fix it...

I´m very intresting in this script... ^___^

 

P.S. I try the first script.

 

greetz: greetz ^^

Edited by greetz

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

 

this is not cs is unityscript -_-

create a java script and copy and paste again the script

sorry my bad english i'm brazilian

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

LoL Yeah Thank

I hope that the scripts you will be useful

Share this post


Link to post
Share on other sites

untested c# version

Please login or register to see this code. Please login or register to see this code. Edited by testing

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...