Inhereting attributes are nil
Hello, I was trying to inhereted some attributes because of repeating code, but for some unknown reason they are "nil" no matter what I do


22 Replies
Can you try accessing via super.attributes?
I think it will work
dosen't seem so

like I am inhereting it inside the class, I am inhereting an interface
Oh, I see
Can you dig in definitions and make . attributes protected?
Ctrl + Left click on "BaseComponent" class and can you check whether the attributes are private
@Nightmare
Oh... Wait
The super class I think will not have them apparently cause it's getting overwriten by inherited class ig
wait i sent script without some info
fixed it
I mean i can access the attributes
but they are nil
but only the inhereted one
for example i can completly normally accerss acceleration
Oh I see
So the base component just doesn't read them?
Interesting
Can you do
I do that?
or wait
okey i did just this
same issue
Wait where do you print the attributes? Can you print them in OnStart?
sorry for so long response, I do.
Dis you put attributes interface on the new(child) component?
um, I don't think so?
Can you? 🥺
tbh i have no idea how
Uhhh
class NewComponent extends YourBaseComponent<IAttribues, IInstanceSteucture>
I think like this
I am so much confused
tested few stuff and discovered that even type guard ignores it
Oh, did you pass it in base component?
i think so
Oh I see
Hmm Strange
might be this a bug? @Tester (Ping in reply pls!)
i would tag flamework creator but no idea what is his nick
Fireboltdeath
@Fireboltofdeath
not ideal fix, i just put the methods i need to use over there to all other sub-classes
still would like to resolve this do to better readablity