Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Feature/move scripts folder to assets#418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
adriengivry wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromfeature/move_scripts_folder_to_assets

Conversation

@adriengivry
Copy link
Member

@adriengivryadriengivry commentedMar 30, 2025
edited
Loading

Description

  • Removed the requirement to have all the scripts inside of theScripts/ folder
  • Added folder support for scripts paths
  • Implemented a migration tool to automatically move scripts fromScripts/ toAssets/Scripts/, and update all scenes to use the new path

Related Issues

Fixes#385

To-Do

  • Bug after exiting play mode: scripts become invalid
  • Fix rename/move bug
  • Get rid ofprojectScriptsPath
  • Prevent same script from being added multiple times
  • Base them_scriptName on the lua table name instead of them_scriptPath.stem()
  • TScript should expose aGetTypeName() function
  • Remove the notion of "Behaviour" from theTScriptEngine. The only thingTScriptEngine should do, is manage the context, create scripts from a path, register/unregister a script to the context, and provide a way to call a function (script, funcName, params)

Screenshots

image
When loading a project that uses the oldScripts/ folder

image
Migration tool output (moving scripts fromScripts/ toAssets/Scripts/)

image
Asset Browser with no moreScripts/ folder at the root, but one inside ofAssets/

@adriengivryadriengivry added QoLQuality of Life : Something that can improve users productivity Feature EditorSomething relative with the editor Project ConfigurationAnything related to setuping our projects labelsMar 30, 2025
@adriengivryadriengivry self-assigned thisMar 30, 2025
@adriengivryadriengivryforce-pushed thefeature/move_scripts_folder_to_assets branch fromf2e2aec to4b96a64CompareMarch 30, 2025 04:15
@adriengivryadriengivry changed the titleFeature/move scripts folder to assets[WIP] Feature/move scripts folder to assetsMay 9, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@adriengivryadriengivry

Labels

EditorSomething relative with the editorProject ConfigurationAnything related to setuping our projectsQoLQuality of Life : Something that can improve users productivity

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Move scripts to theAssets/ folder

2 participants

@adriengivry

[8]ページ先頭

©2009-2025 Movatter.jp