Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 1]
Member [Lv. 1]
Posts : 2
Points : 596
Rep : -1
Join date : 2016-12-06
View user profile

Need Script to enable and disable the image(game object)

on Wed Dec 14, 2016 9:03 am
Message reputation : 0% (1 vote)
I have few images but only three images can be shown at a time, if only three images present inside the app, scroll button should not appear.

that's why i need script which can enable and disable particuar scroll button which is image file
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: Need Script to enable and disable the image(game object)

on Wed Dec 21, 2016 2:52 pm
Hi
try entering the code.
you do not understand much what you want.
Member [Lv. 2]
Member [Lv. 2]
Posts : 6
Points : 259
Rep : 0
Join date : 2017-11-14
View user profile

Re: Need Script to enable and disable the image(game object)

on Tue Nov 14, 2017 10:54 pm
public gameObject scrollpicture;
private int picturesshown;

if (picturesshown >=3)
{
scrollpicture.SetActive(false);
}
Back to top
Permissions in this forum:
You cannot reply to topics in this forum