Reuse of Assets — Prefab!

A laser bolt from a spacecraft is a single object, reused. In Unity, to reuse objects we want to “Prefab” them. Prefab systems allow us to “create, configure, and store a GameObject complete with all its components, property values, and child GameObjects as a reusable Asset”.

Why does this matter? Well, I want to make our Cube fire a laser, not have to recreate the asset thousands of times, and why not? Lasers are pretty great!

So I have created and miniaturized a capsule that will eventually function as our primitive laser, tucked it into our “Prefabs” folder and given the laser a nice green color!

--

--

--

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

More About Passengers — Attribute Sneak Peak

MS Excel 2010 Class 6 Question and Answers

An Introduction to Advanced Loops in Python

C program to calculate sin(x) and cos(x) without using math.h

LeetCode — Climbing Stairs

Change Python Version in Pipenv

Setting up and running Zabbix along with Nginx and MySQL and Grafan ausing Docker-compose to

Tachyon VPN Global Testing Volunteers Wanted!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrew Lengen

Andrew Lengen

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

More from Medium

6 Celebrities Who Overcame Alcohol or Drug Addiction

Seeing is Believing (or Black Like A White Man)

Psychoanalysis and the Uncanny

No Simple Diagnoses: A Few Thoughts on Luna/UST Fallout