Skip to content

Setting an array of class type? #35

@limefrogyank

Description

@limefrogyank

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 the RenderTargetTexture object called renderList. This is a plain array of type AbstractMesh[]. The generator picks this up just fine. I try to use it like this:

_shadowRenderTarget.renderList = new AbstractMesh[] { _moleculeMesh };

However, when I later call render() on the RenderTargetTexture, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions