UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionNeed Script to enable and disable the image(game object) EmptyNeed Script to enable and disable the image(game object)

more_horiz
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

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

more_horiz
Hi
try entering the code.
you do not understand much what you want.

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

more_horiz
public gameObject scrollpicture;
private int picturesshown;

if (picturesshown >=3)
{
scrollpicture.SetActive(false);
}

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

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply