# What does "Scriptable" mean?

**URL:** <https://discussions.unity.com/t/what-does-scriptable-mean/835548>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [April 4, 2021, 8:15pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548 "2021-04-04T20:15:58Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![lordofduct](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/lordofduct/32/890751_2.png) [@lordofduct](https://discussions.unity.com/u/lordofduct)\
**Post date:** [April 5, 2021, 2:33pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/21 "2021-04-05T14:33:00Z")

</div>

Definitely, good names are certainly worth an effort.

I doubt anyone here is really going to argue that Unity’s conventions through the years have been consistently good, but nor have they been consistently bad.

But when you have a growing product with which the team changes over time… things happen, bad choices are sometimes made. And once they’re made… well, it’s hard to change it without breaking backwards compatibility.

---

<div class="post-metadata">

**Author:** ![Suddoha](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/suddoha/32/110358_2.png) [@Suddoha](https://discussions.unity.com/u/Suddoha)\
**Post date:** [April 5, 2021, 2:33pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/22 "2021-04-05T14:33:32Z")

</div>

> [@Stevens-R-Miller](#):
>
> My suggestion above, “StandAlone,” is really no better, as it is also an adjective.

I guess that would also be too abstract, probably too far off and might raise multiple other questions and cause by far more confusion. But it’s good when one needs to describe what kind of objects they are. They’re standalone objects in that their sole existence is not dependent on any other type of object.

> [@Stevens-R-Miller](#):
>
> Since SOs contain nothing but C# (even if that is only to represent data, and not code), The most precise name for them would have been C#Objects, But that would have been a disaster as it would be confused with the “scripts” we use to create components that are subclasses of MBs. (Does anyone else hate calling code “scripts?” I do.) Worse, _all_ instances of a C# class are C# objects. Distinguishing “C# objects” from “C#Objects” would have been impossible, as a practical matter.

I doubt their intent was really to use the term “object” like we use to in software development. I think it’s more of a very abstract and conceptional term (what I referred to as “actual objects” earlier).  
As for components, they are scripts, too, but when we think in pure components, e.g. a health component or a movement controller, these are not the typical “objects” one would conceptionally add to a game - it’s just the technical part, the way Unity was designed, the technical implementation if you will.

They also could have continued that rather weird convention and name it MonoAsset, MonoObject … with respect to the naming of MonoBehaviours. But that as well would have raised question and caused confusion… There’s no way out and it’s pretty much what @Kurt-Dekker said… technical naming is pretty difficult, especially when one develops SDKs/frameworks or an entire engine.

In the end we can just be like: [It is what it is](https://www.youtube.com/watch?v=KpXsfimrkFo). 😉

---

<div class="post-metadata">

**Author:** ![Stevens-R-Miller](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/stevens-r-miller/32/92319_2.png) [@Stevens-R-Miller](https://discussions.unity.com/u/Stevens-R-Miller)\
**Post date:** [April 5, 2021, 2:34pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/23 "2021-04-05T14:34:05Z")

</div>

> [@lordofduct](#):
>
> And to create an instance of it it’d be something like:  
> AbstractInheritableSingleScriptedAssetObjectFactory.CreateTargetedConcreteInstanceAtRuntime()

![](https://emoticons.datahamster.com/rotfl4.gif)

---

<div class="post-metadata">

**Author:** ![Suddoha](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/suddoha/32/110358_2.png) [@Suddoha](https://discussions.unity.com/u/Suddoha)\
**Post date:** [April 5, 2021, 2:36pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/24 "2021-04-05T14:36:31Z")

</div>

> [@lordofduct](#):
>
> Yeah, if this was the enterprise world you’d probably have it:  
> AbstractInheritableSingleScriptedAssetObject
> 
> And to create an instance of it it’d be something like:  
> AbstractInheritableSingleScriptedAssetObjectFactory.CreateTargetedConcreteInstanceAtRuntime()

Old but gold, reminds me of the “large company” part:  
[https://imgur.com/gallery/UV7BEys](https://imgur.com/gallery/UV7BEys)

I have to admit, in my spare time I do lot’s of weird experiments focusing on code architecture, abstractions, patterns etc… sometimes I end up with such beasts, too. It’s fun though.

---

<div class="post-metadata">

**Author:** ![lordofduct](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/lordofduct/32/890751_2.png) [@lordofduct](https://discussions.unity.com/u/lordofduct)\
**Post date:** [April 5, 2021, 2:52pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/25 "2021-04-05T14:52:08Z")

</div>

> [@Suddoha](#):
>
> I have to admit, in my spare time I do lot’s of weird experiments focusing on code architecture, abstractions, patterns etc… sometimes I end up with such beasts, too. It’s fun though.

Same.

[edit]  
Also… I lost it at meeoooooow.

---

<div class="post-metadata">

**Author:** ![MDADigital](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MDADigital](https://discussions.unity.com/u/MDADigital)\
**Post date:** [April 5, 2021, 2:55pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/26 "2021-04-05T14:55:42Z")

</div>

I don’t think you should be afraid of too long names though, with modern code completion. A descriptive name is always better than a none descriptive name with a comment that describes it, a comment that in time will desync with the code

---

<div class="post-metadata">

**Author:** ![Stevens-R-Miller](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/stevens-r-miller/32/92319_2.png) [@Stevens-R-Miller](https://discussions.unity.com/u/Stevens-R-Miller)\
**Post date:** [April 5, 2021, 6:19pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/27 "2021-04-05T18:19:24Z")

</div>

> [@MDADigital](#):
>
> A descriptive name is always better than a none descriptive name with a comment that describes it, a comment that in time will desync with the code

Well, names have been known to desync with code too, eh?

---

<div class="post-metadata">

**Author:** ![MDADigital](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MDADigital](https://discussions.unity.com/u/MDADigital)\
**Post date:** [April 5, 2021, 6:55pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/28 "2021-04-05T18:55:14Z")

</div>

> [@Stevens-R-Miller](#):
>
> Well, names have been known to desync with code too, eh?

Probably, but not nearly as often as comments 😄

---

<div class="post-metadata">

**Author:** ![MDADigital](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MDADigital](https://discussions.unity.com/u/MDADigital)\
**Post date:** [April 5, 2021, 7:23pm UTC](https://discussions.unity.com/t/what-does-scriptable-mean/835548/29 "2021-04-05T19:23:06Z")

</div>

> [@lordofduct](#):
>
> Tell that to my company… they’re in love with Singletons despite all my grumbles.
> 
> Though, my joke example wasn’t a singleton.

Sorry, I ment static factory method.

[Previous page](https://discussions.unity.com/t/what-does-scriptable-mean/835548.md?page=1)
