Exo_Guid
9 months agoPartner
Custom UI - Layers and Ignore Raycast
Hello!
I continue my CUI journey and am attempting to overlay icons on my typescript buttons by using absolute position and zIndex. I've run into an issue where the icon blocks the button functionality and would like to know if it's possible to set an image to ignore raycast.
ui.Pressable({ children: [ ui.Image({ source: ui.ImageSource.fromTextureAsset(this.props.buttonTexture!), style: { height: '100%', width: '100%', resizeMode: 'cover' }, }), ], onPress: (player: hz.Player) => { this.BottonClick() }, style: { position: 'absolute', height: 150, width: 150, bottom: 50, left: 50 }, }),