Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://wallpaper-engine.fandom.com/wiki/SceneScript_Class_Shared
Alright it's quite easy to get the hang of, so it only took me a few minutes to figure it out.
One thing I'd like to ask, though, is if there's a good place to attach "general scripts" to? Just code that isn't specific to any parameters in particular. I'd like to use some functions in an update() method that updates the Shared class, but I can't really find a place to put it. Adding the main code into a random parameter that updates Shared feels a bit wrong, even though it works fine.
There is no general place on a layer or even in the scene where scripts could be attached to. We are usually adding general scripts to the "visible" property because it's right at the top of the property list and kinda make sense for a general script. You don't have to modify the property and return any values in update/init if you just want to leave the property alone.
We might add options to add general scripts somewhere, but since this doesn't have any technical advantages we don't have a high priority on this right now.