IssuesCategory: Ignisquestion-making-an-object-catch-fire-via-code-in-runtime
Liad asked 1 year ago

– Unity Rendering Pipeline: RP  
Hi, how are you? I want to make objects catch on fire via code, in runtime, is it possible? If so, how can I do it?  
Thanks!

2 Answers
Thomas Staff answered 1 year ago

Hello,
Yes it is possible, you can call Call FlammableObject->TryToSetOnFire(), with high ignite power and with origin you want the flame to originate from.
I hope this helps!
All the best,
Thomas

Liad replied 1 year ago

Hey Thomas how are you?
Thank you so much for the response!

I’m loading models from the internet as objects in runtime and want to set them up via code and catch them on fire also via code.
I know you need to setup each object in the editor in order to use them.

Is it possible to perform the setup via code as well?

Thanks
Liad

Liad replied 1 year ago

Hi Tomas how are you?
Thank you so much for the your response!

I’m loading models via the web as objects in runtime.
I know you need to set up each object in the editor in order to be able to set them up in fire.

Is it possible to setup an object via code in runtime and then be able to set it on fire?

Thanks,
Liad

Liad answered 1 year ago

Hi Tomas how are you?
Thank you so much for the your response!
I’m loading models via the web as objects in runtime.
I know you need to set up each object in the editor in order to be able to set them up in fire.
Is it possible to setup an object via code in runtime and then be able to set it on fire?
Thanks,
Liad

Your Answer