audio device button icons
This commit is contained in:
1 parent
ace8ed6ec7
commit
2fbd5820f2
14 files changed
+325
-5068
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class AudioSourceButton : MonoBehaviour {
|
||||
public Texture speakerTexture;
|
||||
public Texture micTexture;
|
||||
|
||||
void SetTexture(bool useLoopback) {
|
||||
RawImage image = GetComponent<RawImage>();
|
||||
|
||||
if (!image) return;
|
||||
|
||||
image.texture = useLoopback
|
||||
? speakerTexture
|
||||
: micTexture;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user