-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: texture mapping movement #2722
base: dev
Are you sure you want to change the base?
Conversation
Windows and Mac build successfull in Unity Cloud! You can find a link to the downloadable artifact below. |
…ent implementation.
Explorer/Assets/DCL/SDKComponents/Tween/Systems/TweenLoaderSystem.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!! left a small comment that you can disregard :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation checked on both platforms Windows and Macos ✅
Explorer/Assets/DCL/SDKComponents/Tween/Components/CustomTweener/CustomTweener.cs
Outdated
Show resolved
Hide resolved
@@ -88,6 +88,32 @@ public override void UpdateTransform(Transform transform) | |||
{ | |||
transform.localRotation = currentValue; | |||
} | |||
} | |||
|
|||
public class TextureMoveTweener : CustomTweener<Vector2, VectorOptions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing the change mentioned above, this is going to be just a Vector2
tweener, that can be reused in UI for example; and not hardly bound to textures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not entirely possible, since we still depend on the PBTween mode (position, scale, rotation, textureMove) to create the custom tweener and get the values.
We could add another abstraction layer but I'm not sure it's worth it, between TextureMoveTweener and Vector2Tweener, but it conflicts with the CustomTweener implementation
|
||
if (pbTween.ModeCase == PBTween.ModeOneofCase.TextureMove) | ||
{ | ||
var sdkTweenTextureComponent = new SDKTweenTextureComponent(pbTween.TextureMove.MovementType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure this component adds value. PBTween
is in the entity, you can still use it when you got to determine the texture tween type.
Please check if this component can be deleted, and you can keep the creation of tweens branching free
@@ -30,7 +30,7 @@ public class TweenUpdaterSystemShould : UnitySystemTestBase<TweenUpdaterSystem> | |||
public void SetUp() | |||
{ | |||
tweneerPool = new TweenerPool(); | |||
system = new TweenUpdaterSystem(world, Substitute.For<IECSToCRDTWriter>(), tweneerPool, null, Substitute.For<SceneStateProvider>()); | |||
system = new TweenUpdaterSystem(world, Substitute.For<IECSToCRDTWriter>(), tweneerPool, Substitute.For<SceneStateProvider>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you take the opportunity and do a test on the texture mapping feature?
…ept from Transforms and Materials
# Conflicts: # Explorer/Assets/Scripts/ECS/Unity/Textures/Components/TextureComponent.cs # Explorer/Packages/manifest.json
Initiative Notion: https://www.notion.so/decentraland/Texture-mapping-movements-ex-UV-animations-5859b7d5d35f4b54be01767bf9845849
Related PRs:
Protocol PR: decentraland/protocol#230
SDK: decentraland/js-sdk-toolchain#1028
QA TEST STEPS
npm i
and thennpm run start