#Hello!

1 messages · Page 1 of 1 (latest)

latent goblet
#

hmm so its not showing up

#

making a thread, let me take a look

supple skiff
#

are you missing a factory for it?

latent goblet
#

you need to make a facotry

#

^

#

beat me to it

#

lol

supple skiff
#

😄

latent goblet
#

Asset Definition is just info about the asset

#

the Factory is what is used to construct it, and also put it in the menu

fiery glen
#

Aaah I see. I was looking at the factory code just right now for state trees. Since mine is an extension I guess it should be fine to create my own inheriting form the original?

#

My question is: where is the factory being used? Do I simply create one, specify which class should it use (my custom state tree) and that's it? Automatically works?

#

Thanks a lot for the help btw

latent goblet
#

its automatic

fiery glen
#

Brilliant. Thanks a lot!

fiery glen
#

There's something I don't understand
and also put it in the menu
I'm looking into StateTreeFactory and I don't see anything there that will indicate to add the asset to the menus in question.
The only place where I stated any categories in in the Asset Definition, so I'm a bit confused about how these 2 things (Factory and Definition) are working with each other

fiery glen
#

OK that Worked!+++

#

thanks a lot, honestly. I was stuck and my only help was this, code and some chinesse post that, turns out, was right