-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting an array of class type? #35
Labels
feature
New feature or request
Comments
Looks like I might have to write a custom |
Wasn't sure how to do the
used like this with a synchronous JSRuntime:
|
This looks like a deficiency in the generator, I will look at getting this in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm at a loss as to how to add an array of a class type. For example, in
RenderTargetTexture
, you need to add any meshes that you want rendered into a property on theRenderTargetTexture
object calledrenderList
. This is a plain array of typeAbstractMesh[]
. The generator picks this up just fine. I try to use it like this:However, when I later call
render()
on theRenderTargetTexture
, BabylonJS spits out an error. The actual JS AbstractMesh object is the Cached version that has the___guid
. There doesn't seem to be a way to translate those C# objects to the javascript objects. I can't seem to find a way to manipulate arrays, so I'm not sure what to do next.The text was updated successfully, but these errors were encountered: