Arrays in Unity

The number of elements is determined in the code.
Hard coding
In Unity numbers start at zero, so three is the fourth in the list.
The name Caron is displayed
Now, it will print out Caron with a random item.
Carol fish. the random element was 1

--

--

--

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

Recommended from Medium

Sequelize Model Validation

New way of sharing files across devices over the web using WebRTC

9 jQuery FormValidation Plugins

JavaScript Type Linting

Scopes In Javascript.

ES5 Regular vs ES6 Arrow Function in JavaScript

Sitecore JSS — next Intro

Babylon.js, an Intro

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
addam davis

addam davis

More from Medium

Light layers in Unity HDRP

2.5D Platformer: Wall Jumping

Pushing Objects in Unity to Complete Puzzles

Day 104: Creating A Ledge Grab In Unity Part 2