Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

chelaton

10
Posts
1
Topics
A member registered May 09, 2020

Recent community posts

there was missing 

public RectTransform _canvasRect;

float m_width;

and assign canvas to public field

but still not working, can you update code on unity asset store?

m_width = (rt.rect.width + _cellGap) * _canvasRect.localScale.x;

UnassignedReferenceException: The variable _canvasRect of CarouselController has not been assigned.
You probably need to assign the _canvasRect variable of the CarouselController script in the inspector.
UnityEngine.Transform.get_localScale () (at <7559bf9767e74ff5906f18401f66cd57>:0)
CarouselController.SetupCells (System.Boolean instantUpdate) (at Assets/CarouselMenu/Scripts/CarouselController.cs:251)

Hi, 

do you know how to fix it?

Here is button 2 position

Here is the button 1 position

My screen from your demo. I changed Canvas scale ... run the game ..

I'm not sure. But you didn't change canvas scale too much .. only 0.5 . change it to 0.001, 0.001, 0.001 and x positions of buttons will be 110000, -110000, 220000, -220000.

Tried and not working. Probably its not so easy.  Tried to change your demo  canvas and result is the same. 

Hi, thanks for replay. If your Canvas scale is different than 1,1,1 .. mine is 0.001, 0.001, 0.001 and x positions of buttons are 110000, -110000, 220000, -220000.

rt.position = m_final; hi this part change position of other buttons to 110000 instead 110 .. any help?