# 0.0、1.0の時に矢印のOpacityを0.5それ以外は1.0に変更したい

**URL:** <https://forums.unrealengine.com/t/0-0-1-0-opacity-0-5-1-0/2166837>\
**Category:** 日本語 (Japanese)\
**Tags:** unreal-engine, Widget, Blueprint, question\
**Created:** [December 3, 2024, 10:09am UTC](https://forums.unrealengine.com/t/0-0-1-0-opacity-0-5-1-0/2166837 "2024-12-03T10:09:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DROSS\_JP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DROSS\_JP](https://forums.unrealengine.com/u/DROSS_JP)\
**Post date:** [December 3, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/0-0-1-0-opacity-0-5-1-0/2166837/2 "2024-12-03T15:37:20Z")

</div>

floatを「==ノード」で比較することは好ましくありません。恐らくそのブランチは常にFalseになっているものと思われます。  
詳細は以下のスレッドを参照してください。

> [@Float型変数を単精度から倍精度へ変換したい](https://forums.unrealengine.com/t/float/1525179):
>
> このようなBPを組み、実行すると、 [image] こうなります。 ==の上の値は0.6と表示され、下も0.6ですが、2つの値は等しくないと表示されました。 調べてみたところ、単精度と倍精度の違いによるもののようです。 単精度の変数を倍精度に変換する方法はあるのでしょうか？

---

_[View the full topic](https://forums.unrealengine.com/t/0-0-1-0-opacity-0-5-1-0/2166837)._
