# アニメーション内でシェーダーを編集するとすべてのオブジェクトに影響する問題について

**URL:** <https://guild.rpgmakerofficial.com/t/topic/540>\
**Category:** バグ報告\
**Created:** [2025 年 7 月 7 日午前 3:46 UTC](https://guild.rpgmakerofficial.com/t/topic/540 "2025-07-07T03:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moluoye233](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/moluoye233/32/794_2.png) [@moluoye233](https://guild.rpgmakerofficial.com/u/moluoye233)\
**Post date:** [2025 年 7 月 7 日午前 3:46 UTC](https://guild.rpgmakerofficial.com/t/topic/540/1 "2025-07-07T03:46:26Z")

</div>

**Reproducible version**  
AGMaker 1.0.12  
**Problem description**  
I was trying to edit a shader dissolve animation using the animation editor, and when switching variables, I found that it affected all identical objects in the scene. During an attempt, I discovered that enabling **resource\_local\_to\_scene** could solve this issue, but I’m unsure whether this is a bug—specifically, why pressing the button node triggers the animation of another object. Therefore, I created a minimal reproducible project to isolate the problem.  
**Reproduction steps**

1. Download the attachment, unzip it, import the project, and press F5 to run.
2. Click the button to observe the animation changes.

**Attachment**  
[Reproduce the issue.zip](https://guild.rpgmakerofficial.com/uploads/short-url/fnGWoCC0G3qtZ7nYtDJEI5lRKEc.zip) (2.6 MB)

---

<div class="post-metadata">

**Author:** ![Justus](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/justus/32/55_2.png) [@Justus](https://guild.rpgmakerofficial.com/u/Justus)\
**Post date:** [2025 年 7 月 7 日午前 3:56 UTC](https://guild.rpgmakerofficial.com/t/topic/540/2 "2025-07-07T03:56:45Z")

</div>

シェーダーの共有は Godot のネイティブ仕様です。単にシェーダーの問題であれば、「resource\_local\_to\_scene」を使用するのは想定通りです。

---

<div class="post-metadata">

**Author:** ![moluoye233](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/moluoye233/32/794_2.png) [@moluoye233](https://guild.rpgmakerofficial.com/u/moluoye233)\
**Post date:** [2025 年 7 月 7 日午前 3:57 UTC](https://guild.rpgmakerofficial.com/t/topic/540/3 "2025-07-07T03:57:55Z")

</div>

ありがとうございます。これでアニメーションの問題が解決しました。
