Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

カスタムクラスアイコンをノードに表示してほしい #1

Closed
AheadGameStudio opened this issue Nov 5, 2022 · 1 comment

Comments

@AheadGameStudio
Copy link

image

image

カスタムクラスに設定したアイコンをノードのアイコンとして表示してほしいです!

@folt-a
Copy link
Owner

folt-a commented Nov 5, 2022

@iconを設定したスクリプトとそのスクリプトをルートノードにつけたシーンをドロップするとアイコンが反映されるようになりました。

現時点では、@iconを設定したスクリプトのクラスをextendsしたスクリプト・シーンでは反映されません。
(このスクリプトに別途@iconがあれば、それが反映されます)

また、スクリプトをテキストとして読み取ってアイコンのパスを取得しているため、毎回やると重くなるので、
キャッシュ処理として初回アイコン画像読み取り時に、画像のパスを設定ファイルに含めて保存しています。

そのため、アイコンが変更されてももとのアイコンが表示され続けます。
アイコンが変更したい場合は一度消して保存し、再度ドロップして追加する必要があります。

image

@folt-a folt-a closed this as completed Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants