Unity – I need to flash that jerk? – Proxies-free.com: 100% Free Daily Proxy Lists Every Day!
Unity – I need to flash that jerk?
I need that idiot to flash:
… but not literally. This is a 3D game object that faces the camera and has an unlit texture. I need to "flicker" the object to indicate that the item was received. The object must be created at the moment when the lid opens (ready), remains unlocked until the lid jumps all the way up, and flashes three times during the 0.6 second in which the lid is open. The feces are destroyed as soon as the lid falls down again. My code (flashing / flashing does not work)
public GameObject item = null;
GameObject itemClone = Instantiate(item, transform.position + new Vector3(0, 0.5f, 0), Camera.main.transform.rotation * Quaternion.Euler(0,180,0));
Blink(itemClone);
Destroy(itemClone, 0.8f);
IEnumerator Blink(GameObject obj)
Renderer objRenderer = obj.GetComponent();
objRenderer.enabled = false;
Author AdminPosted on July 23, 2019 Categories ArticlesTags Flash, jerk, unity
Previous Previous post: Sitemap empty – WordPress Development Stack Exchange
Next Next post: Homologous Algebra – Conditional convergent spectral sequences with outgoing and incoming differentials
Unity – I need to flash that jerk? – Proxies-free.com: 100% Free Daily Proxy Lists Every Day!
Unity – I need to flash that jerk?
I need that idiot to flash:
… but not literally. This is a 3D game object that faces the camera and has an unlit texture. I need to "flicker" the object to indicate that the item was received. The object must be created at the moment when the lid opens (ready), remains unlocked until the lid jumps all the way up, and flashes three times during the 0.6 second in which the lid is open. The feces are destroyed as soon as the lid falls down again. My code (flashing / flashing does n
ot work)
public GameObject item = null;
GameObject itemClone = Instantiate(item, transform.position + new Vector3(0, 0.5f, 0), Camera.main.transform.rotation * Quaternion.Euler(0,180,0));
Blink(itemClone);
Destroy(itemClone, 0.8f);
IEnumerator Blink(GameObject obj)
Renderer objRenderer = obj.GetComponent();
objRenderer.enabled = false;
Author AdminPosted on July 23, 2019 Categories ArticlesTags Flash, jerk, unity
Previous Previous post: Sitemap empty – WordPress Development Stack Exchange
Next Next post: Homologous Algebra – Conditional convergent spectral sequences with outgoing and incoming differentials