Created
October 11, 2018 06:40
-
-
Save ikoan310/2a0395b1982ff2b75c1b19507f65d908 to your computer and use it in GitHub Desktop.
ParticleSystem.Emitを使って、パーティクルを放出する際に、放出位置をプログラムから指定したい場合、ParticleSystemのtransformのpositionを変更するだけではいけないっぽい。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ParticleSystem.EmitParams emitParams = new ParticleSystem.EmitParams(); | |
emitParams.position = "放出させたいワールド座標"; | |
emitParams.applyShapeToPosition = true; | |
particleSystem.Emit(emitParams, 50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment