pofulu / sparkar-pftween

Tween library for Meta Spark Studio (Spark AR).
https://www.npmjs.com/package/sparkar-pftween
MIT License
65 stars 10 forks source link

Possible Unhandled Promise Rejection: ReferenceError: Property 'y' doesn't exist on Spark AR V137 & V138 #10

Closed Singforthelaughter closed 2 years ago

Singforthelaughter commented 2 years ago

WARNING: Possible Unhandled Promise Rejection: ReferenceError: Property 'y' doesn't exist { "line": 743, "column": 44, "sourceURL": "PFTween.ts" }

Warning occurs when I try to animate a plane using PFTween. Below are the code I used.

`(async function () {

const plane = await S.root.findFirst('plane0');

plane.transform.y = new PFTween(0.5, -0.5, 3000).setLoops().scalar;

})(); Code_xRuPovjkxL ARStudioWindows_vS6Xeld6c0 `

pofulu commented 2 years ago

I guess it caused by some transpile configures changed in SparkAR. The new release v1.2.3 works in my test. You can just download it from README.

Thanks for the report!