Skip to content

请问下,我如何控制 Entity实体让他在某些情况下show属性切换? #237

Answered by KKindom
KKindom asked this question in Q&A
Discussion options

You must be logged in to vote

我发现我的问题了,我重新设置线段id,通过 viewer.entities.getById("rain").show = false; 循环设置show属性即可。
但是我想问下大家,实体数量很多的情况下,反应会慢很多,就是过几秒才会有反应。
我时1050ti,这种大量的实体需要隐藏的话,怎么处理性能会好一些?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zouyaoji
Comment options

@KKindom
Comment options

Answer selected by KKindom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants