Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Getting the inserted object in a plugin?

Asked by 5 years ago

I am trying to change the properties of any object that is inserted into my game (in studio) through a plugin. I couldn't find anything that would return the inserted object. Is this possible? any workarounds?

Thanks.

1 answer

Log in to vote
0
Answered by 5 years ago

I am not sure if you can do that but one other way is using Selection

It's basically a service for plugins that lets you read and modify what's selected. So for your situation you would bind a function to SelectionChanged and in it you would change the properties.

0
@GGRBXLuaGG I tried using that, but I need this to work only when an object is newly inserted. Le_JuiceBOX 54 — 5y
Ad

Answer this question