Highlighting usable objects
Posted: Sun May 22, 2016 5:38 am
Hello Tony,
I want to highlight any usable object by default, so that my player knows which objects to interact with. I created a component which, depending on enum, can be set as OnEnable or according to distance. Now, how to automatically bind that highlighting component with each object that has Usable? I know I can iterate over each object, but that's ineffective. I can modify Usable component, but any changes would be lost in case of DS update. Is there a way to extend Usable? A partial class somewhere?
Best!
I want to highlight any usable object by default, so that my player knows which objects to interact with. I created a component which, depending on enum, can be set as OnEnable or according to distance. Now, how to automatically bind that highlighting component with each object that has Usable? I know I can iterate over each object, but that's ineffective. I can modify Usable component, but any changes would be lost in case of DS update. Is there a way to extend Usable? A partial class somewhere?
Best!