Scriptable Objects in Unity

  • Create a script called CardView
  • Drag and drop the script into the Cards_panel
  • Inside the script, declare the following
  • Assign each one in the hierarchy
  • Create a script CardModel. This will be the model (template) for all the cards
  • Instead of MonoBehaviour, it will inherit from ScriptableObject

--

--

--

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

Recommended from Medium

Programmer Best Practices — Being Late and Writing tests

Book Summary — Clean Code

Floating-point rounding error in computers

Custom CSS Issues with WordPress and How to Fix It

Error Handling Using Power Automate

Transactional methods (FastAPI, SQLAlchemy)

Create a Distributed Database with High Availability with Apache ShardingSphere

What is Anthos by Google Cloud?

Anthos, the bridge between on-prem and Google Cloud

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
Hernando Nieto Jaramillo

Hernando Nieto Jaramillo

Unity developer

More from Medium

You Died — Creating a Retro Game Over Behavior

How to spawn the player object in a platformer game in Unity

Wall Jumping

Platformer: Wall Jump