2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UpdateOverlapEventが滅茶苦茶糞重いっす

Last updated at Posted at 2019-02-21

うーん!ありがちですね!
プロファイルした時にMovementComponentがめっちゃ上にでてくるアレです。
自ら動くアクターはプロファイルした時に出てくるのでわかりやすいですが
レベル全体にどれだけ登録されているのかも影響を与えます。

そこで誰がbGenerateOverlapEventsを立ててるのか調べていくわけですが
一個一個ブループリントを調べてると複雑骨折します。

こういう時は

GetAll PrimitiveComponent bGenerateOverlapEvents

をコンソールに入力してログにダンプしましょう!
※これのHUD版がDisplayAllです

スペルミスしなければこんな感じでログがでます

161) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_CylinderFull2.StaticMeshComponent0.bGenerateOverlapEvents = False
162) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_CylinderFull_5.StaticMeshComponent0.bGenerateOverlapEvents = False
163) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.throne_20171129.StaticMeshComponent0.bGenerateOverlapEvents = True
164) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box58_24.StaticMeshComponent0.bGenerateOverlapEvents = True
165) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box55_22.StaticMeshComponent0.bGenerateOverlapEvents = True
166) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box54_20.StaticMeshComponent0.bGenerateOverlapEvents = True
167) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box48_18.StaticMeshComponent0.bGenerateOverlapEvents = True
168) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box47_16.StaticMeshComponent0.bGenerateOverlapEvents = True
169) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box46_14.StaticMeshComponent0.bGenerateOverlapEvents = True
170) StaticMeshComponent /Game/Map/Test/UEDPIE_0_Test_01_ProtoType.Test_01_ProtoType:PersistentLevel.GridBox_Box44_5.StaticMeshComponent0.bGenerateOverlapEvents = True

あとはバグが出ないようにフラグをバキバキ折っていくだけです!
ねっ?簡単でしょ!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?