# C++関数ライブラリの引数にポインタ

**URL:** <https://forums.unrealengine.com/t/c/425762>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 23, 2018, 11:59am UTC](https://forums.unrealengine.com/t/c/425762 "2018-05-23T11:59:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ae99845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ae99845](https://forums.unrealengine.com/u/anonymous_user_9ae99845)\
**Post date:** [May 23, 2018, 11:59am UTC](https://forums.unrealengine.com/t/c/425762/1 "2018-05-23T11:59:51Z")

</div>

関数内で変数の値を変更したいです。

Blueprint Function Library内の関数の引数にポインタを渡すことって可能でしょうか？  
ポインタでなくても変数の値を変更することができたら他の方法でも構いません。

方法があればご教授お願いします

Sorry, I can’t speak English…  
I want to change variable’s value in a function.  
Can I set pointer in a function arguments?  
If change variable’s value, I’m OK not pointer.  
In C++

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [May 23, 2018, 12:41pm UTC](https://forums.unrealengine.com/t/c/425762/2 "2018-05-23T12:41:54Z")

</div>

You want Pass-by-Reference to be true on the variable

> **[What does Pass-By-Reference do?](https://forums.unrealengine.com/questions/156052/what-does-pass-by-reference-do.html)**
>
> I've been working with UE4 for 1-2 months now so I'm pretty familiar with most of the Blueprint/Event Graph stuff, however I am still a bit confused about the Pass-By-Reference checkbox on function/event inputs. I found plenty of threads here...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

![241914-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/d/67dfd802b35fb40ce05f9381489d3a75363ef307.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ae99845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ae99845](https://forums.unrealengine.com/u/anonymous_user_9ae99845)\
**Post date:** [May 23, 2018, 2:08pm UTC](https://forums.unrealengine.com/t/c/425762/3 "2018-05-23T14:08:52Z")

</div>

sorry, I want to implement with c++

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [May 23, 2018, 2:32pm UTC](https://forums.unrealengine.com/t/c/425762/4 "2018-05-23T14:32:21Z")

</div>

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Rama to the rescue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ae99845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ae99845](https://forums.unrealengine.com/u/anonymous_user_9ae99845)\
**Post date:** [May 24, 2018, 6:07am UTC](https://forums.unrealengine.com/t/c/425762/5 "2018-05-24T06:07:45Z")

</div>

Thanks I can!
