Changing UVs at runtime

Software: Away3D 4.x

Rasterizer, Member
Posted: 01 December 2012 11:10 PM   Total Posts: 69

Is this the correct way of accessing and changing UVs ?

myMesh.subMeshes[0].scaleV = 0.5;
myMesh.subMeshes[0].offsetU = 0.5;

If so, should the changes be immediately visible ? Because I’m not seeing any.
If not, would you give me the correct procedure please ?

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 02 December 2012 12:40 AM   Total Posts: 166   [ # 1 ]

You have to set animateUVs = true. (“material” property.)

myMaterial.animateUVs=true
   

Rasterizer, Member
Posted: 02 December 2012 07:05 AM   Total Posts: 69   [ # 2 ]

Thanks man!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X