Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tariibaba/canvaselementvisibility
Easily hide/show Unity Canvas elements
https://github.com/tariibaba/canvaselementvisibility
canvas csharp ui unity unity-editor
Last synced: 21 days ago
JSON representation
Easily hide/show Unity Canvas elements
- Host: GitHub
- URL: https://github.com/tariibaba/canvaselementvisibility
- Owner: tariibaba
- Created: 2021-12-06T07:35:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-06T08:02:27.000Z (about 3 years ago)
- Last Synced: 2024-11-27T15:50:49.918Z (3 months ago)
- Topics: canvas, csharp, ui, unity, unity-editor
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CanvasElementVisibility
Easily hide/show Unity Canvas elements.# Usage
## Unity Editor
Add the CanvasElementVisibility component script to the game object you want to hide/show and toggle the *Visible* property to change its visibility.![Unity Editor Usage](Images/unity-editor-usage.png)
## Code
```csharp
gameObject.GetComponent().Visible = true;
```