Skip to content

Adding MeshToSDF in runtime #5

@yadreny

Description

@yadreny

Hi, everything works fine when the script added in the editor,
but if I add it in runtime, I get an error in line 149 in function Init()

m_InitializeKernel = m_Compute.FindKernel(Labels.Initialize);

in this case, m_Compute is null, and I have no idea how to initialize it.
Tried to call OnEnable() using reflection after adding it to GameObject, but no luck.
I would appreciate a hint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions