# UParticleSystemComponent::GetNumMaterials() 関数が「0」を返して来る

**URL:** <https://forums.unrealengine.com/t/uparticlesystemcomponent-getnummaterials-0/491010>\
**Category:** FX\
**Tags:** particle-systems, unreal-engine, UE4, question\
**Created:** [November 17, 2021, 8:02am UTC](https://forums.unrealengine.com/t/uparticlesystemcomponent-getnummaterials-0/491010 "2021-11-17T08:02:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KunihikoMori](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kunihikomori/32/710746_2.png) [@KunihikoMori](https://forums.unrealengine.com/u/KunihikoMori)\
**Post date:** [November 17, 2021, 8:02am UTC](https://forums.unrealengine.com/t/uparticlesystemcomponent-getnummaterials-0/491010/1 "2021-11-17T08:02:35Z")

</div>

パーティクルシステムにマテリアルを設定しているにも関わらず、  
表題のように、  
UParticleSystemComponent::GetNumMaterials() 関数が「0」を返して来ます。  
マテリアルの設定方法がおかしいのでしょうか。

 ![352356-ハーティクルのマテリアル設定値.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/1/8e1784faa221051da8e2f7f49b8f3b271d70899d.png)
