You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a Txt node is set as a child of another node (Txt is known to have this issue, there may be others but I haven't tested enough), its position will not update if modified.
To Reproduce
exportdefaultmakeScene2D(function*(view){consttext=createRef<Txt>();consttext_split=createRefArray<Txt>();view.add(<BTxtref={text}fontSize={150}textAlign={"center"}position={[0,0]}>{"This is a test".split(" ").map((word)=>(<Txtref={text_split}text={word+ " "}
opacity={0}y={16}scale={[0.6,1.5]}offsetY={1}/>))}</BTxt>,);yield*sequence(0.1,
...text_split.map((word)=>any(word.opacity(1,0.12),// worksword.scale([1,1],0.12),// worksword.position.y(0,0.12),// doesn't change anythingword.offset.y(0,0.12),// doesn't change anything),),);});
Expected behavior
The text should be able to change its position or offset, but it doesn't
Package versions: Click on the version in the bottom right corner to copy the versions
core: 3.17.0
two: 3.17.1
ui: 3.17.0
vitePlugin: 3.17.0
Additional context
This makes it nearly impossible to animate "nice text transitions" like those seen commonly in games for dialogue.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a Txt node is set as a child of another node (Txt is known to have this issue, there may be others but I haven't tested enough), its position will not update if modified.
To Reproduce
Expected behavior
The text should be able to change its position or offset, but it doesn't
Package versions:
Click on the version in the bottom right corner to copy the versions
Additional context
This makes it nearly impossible to animate "nice text transitions" like those seen commonly in games for dialogue.
The text was updated successfully, but these errors were encountered: