-
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 ✅
public abstract void UpdateSDKTransform(ref SDKTransform sdkTransform); | ||
public abstract void UpdateTransform(Transform transform); | ||
|
||
public virtual void UpdateSDKTransform(ref SDKTransform sdkTransform) { } |
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.
I think its a good opportunity to remove these three methods (UpdateSDKTransform
, UpdateTransform
and UpdateMaterial
) from the interface.
If we continue down this path, any new thing that we want to tween (IE: bones or UI) would need to be added to the interface as virtual.
We could think of doing extensions methods for ICustomTweener
. Please ping me when available and we can walk trough it together
@@ -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
|
||
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?
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