# How to mouse click on both sides of a double sided texture?

**URL:** <https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 11, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610 "2023-09-11T21:14:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 11, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/1 "2023-09-11T21:14:19Z")

</div>

I have a spectator object. If I left click on the front of a double sided textured plane. It will work. On back, I can see the texture, so my double sided texture plane is working, but if I click on the back of this texture my blue print code does not get called. Only when I click on the front of the texture object will my blue print code get called. Is there a simple fix for this?

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 11, 2023, 9:20pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/2 "2023-09-11T21:20:54Z")

</div>

If I click on front, a transform widget appears, and I can move my double sided textures around the area.

 ![front](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/2/942dc0d5eb5204d26811407f28e8a55017611c08.jpeg)

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 11, 2023, 9:21pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/3 "2023-09-11T21:21:55Z")

</div>

If I click on the back of my double sided textures, nothing happens.

 ![back](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/3/8f35d8e9b6aa13fd6952898599e0fa00778e73df.jpeg)

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [September 11, 2023, 9:51pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/4 "2023-09-11T21:51:59Z")

</div>

In editor, an object is an object.  
If you use an engine plane and gave it a custom material, you will be able to click it and select it no matter where you click from.

If you did anything else, then you probably did something incorrectly.

Going by your terminology you are fairly new to the whole process and the engine, so take your time, play around, look at tutorials on the learning section.

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 11, 2023, 10:03pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/5 "2023-09-11T22:03:49Z")

</div>

Go to static mesh tab, double click on selected mesh. New window will open. There, go to details. Scroll down to collision. Find collision Complexity, change it to Use Simple Collision As Complex.

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 12, 2023, 1:41pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/6 "2023-09-12T13:41:22Z")

</div>

I should have clarified one thing, the transform gizmo is a RUNTIME transform gizmo…selecting is not an issue inside the editor. I was referring to having the problem at runtime.

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 12, 2023, 1:57pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/7 "2023-09-12T13:57:38Z")

</div>

> [@Shunitzo](#):
>
> Use Simple Collision As Complex.

Use Simple Collision As Complex.  
This fixed problem, thx!  
(although it was hard to find where this property was…)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 12, 2023, 2:02pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/8 "2023-09-12T14:02:02Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/5/da5a0e6b84681e4347567cdfd02ad9b91b5b5b91.png)

For a plane you’d need this.

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 14, 2023, 4:41pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/9 "2023-09-14T16:41:15Z")

</div>

Thanks for info!  
Is one method more optimal than the other?  
Or is either method ok?  
(simple as complex solution VS Double sided geometry)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 14, 2023, 4:53pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/10 "2023-09-14T16:53:10Z")

</div>

> [@martinortiz](#):
>
> more optimal

Probably as irrelevant as it is unmeasurable in this instance. That’s until you do need Complex Collision for polygon tracing and fetching material indexes.

> Simple Collision As Complex

I think that it working for this is a side effect. I am actually baffled by this setting sorting this out. Time to dig deeper:

> [@How to interact with a widget component from the back using a mouse and without the interaction component](https://forums.unrealengine.com/t/how-to-interact-with-a-widget-component-from-the-back-using-a-mouse-and-without-the-interaction-component/611752):
>
> white_check_mark the embedded widget detects OnMouseEnter correctly from the front: x but not from the back: two-sided is on, as seen above; so is hardware input I can flip it around but I don’t want to I’d rather avoid using the widget interaction component Any easy way to have the widget detect mouse from the backside?

To figure this one out. @Shunitzo Thanks!

---

<div class="post-metadata">

**Author:** ![martinortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martinortiz](https://forums.unrealengine.com/u/martinortiz)\
**Post date:** [September 15, 2023, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/11 "2023-09-15T16:46:48Z")

</div>

Wait a second…  
Are you saying that even though “simple as complex” method works, it is not correct way to do it?

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 16, 2023, 2:58pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/12 "2023-09-16T14:58:14Z")

</div>

[Simple versus Complex Collision | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/InteractiveExperiences/Physics/SimpleVsComplex/#:~:text=In%20Unreal%20Engine%2C%20you%20have,trimesh%20of%20a%20given%20object).

> [@](#):
>
> **Simple Collision** are primitives like cubes, spheres, capsules, and convex hulls.

No mention of the planes.

I’ve gone to engine plane mesh. Enabled simple collision, selected it and scaled it. It is in fact a cube hull scaled down.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 16, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/13 "2023-09-16T15:13:34Z")

</div>

I reckon that Double Sided Geometry switch is there for a reason. If you do not need complex collision, it probably does not matter what you use.

> engine plane mesh

Is a scaled down box? Really. Remind me not to use it. Why would clicking on the other side not work then, if it’s not a plane to start with.

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 16, 2023, 3:23pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/14 "2023-09-16T15:23:55Z")

</div>

No idea.

Maybe it’s forced to use complex?  
Is one sided plane collision more complex and heavier to compute than a 6 sided box?

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [September 18, 2023, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/15 "2023-09-18T21:26:47Z")

</div>

Hes talking about the collision.  
The collision is _always_ a hull. You can’t have it any other way AFAIK (from engine docs anyway).  
A scaled cube is the cheapest form of collision avaliable to a plane.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 18, 2023, 9:49pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/16 "2023-09-18T21:49:54Z")

</div>

Engine plane:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/4/4d46e81c2209887166bc71ae197f5c2405328733.png)

- remove any and all simple collision from it, no more hull
- use complex collision as simple, we’ll use _every_ triangle instead which is 2 tri only, yay!
- enable dual sided geometry, still 2 tri

Now you have a 2 triangle plane with double sided collision. Whether it’s faster than a box is arguable, but I wouldn’t argue as I have no clue. There might be optimisations _here_ I’m not aware of. When you take it closer to the metal, though, colliding against a single poly is faster than against 6.

* * *

I feel the engine obfuscates things a bit. In UE physics sims (for example) does not allow for per triangle collision out of the box. You’d need to import your own collision and then use `Complex as Simple` - it works well enough. I guess the limitation is here to prevent people from having overly complex simulating meshes.

You can, of course, collide _against_ complex geo with ease.

* * *

So yeah, I kind of want to say that double sided geometry trace with complex collision instead of box hull will be faster. Anyone wants to set up a test?

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 18, 2023, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/17 "2023-09-18T23:22:20Z")

</div>

Made a simple test:

4608 planes. 2 mesh tipes: Simple as Complex and Complex as Simple.

Code in lvl BP:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/a/01a0de20c59b8caedcb9925013d5c36f13b476d6.png)

Tipe 1. Simple as Complex.  
Double Side: Off.  
Complex trace: On.

Spikes(in ms):  
1: 59.1  
2: 58.4  
3: 59.4  
4: 58.6  
5: 58.3

Tipe 2. Complex as Simple.  
Double Side: On.  
Complex trace: Off.

Spikes(in ms):  
1: 60.4  
2: 65.5  
3: 61.8  
4: 69.8  
5: 61.4

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [September 19, 2023, 4:03am UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/18 "2023-09-19T04:03:17Z")

</div>

Almost?  
Line trace is non physical.  
You should run the test with touch simulation - such as having each plane slam into the other domino like.

That will tell you if _physics_ are affected in any dofferent eay between 2 tris as complex and 1 cube as simple.

If we are taking bets, I’m betting the cube primitive will run a ton faster.

Additionally, anyone can safely bet that a domino like plane scenario will become unusable with chaos after around XxX instances.

My guess is around 400 bodies (unusable = sub 30fps at 4k native limited by CPU).

Ehile physx would survive to around 1500 or so.

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [September 19, 2023, 9:23am UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/19 "2023-09-19T09:23:08Z")

</div>

512 planes.

Simple as Complex.  
Double Side: Off.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/f/5df9942d03d8f81dee54feecbe7b5b29cdc385d6.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/f/5df9942d03d8f81dee54feecbe7b5b29cdc385d6.mp4)

2 tris made in Blender using UCX  
Double Side: On.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/e/e7e01bf01115b6a4d4ffd276fc9c4ad5e1c8a9bb.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/e/e7e01bf01115b6a4d4ffd276fc9c4ad5e1c8a9bb.mp4)

Hard to spot the difference.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [September 19, 2023, 10:27am UTC](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610/20 "2023-09-19T10:27:30Z")

</div>

Technically you should not be doing this from PIE to get anything meaningful.

either way I think most planes manage to stop simulating well before the rest of them fall out. Either that or chaos got a little better than I predicted over time (which is probably really just wishful thinking).

And, the margin of difference is probably as little as it is for the line-trace apparently. Which is actually better than I ever thought possible in unreal 😛

[Next page](https://forums.unrealengine.com/t/how-to-mouse-click-on-both-sides-of-a-double-sided-texture/1291610.md?page=2)
