reveal method

  1. @override
Future reveal(
  1. ThermionEntity entity,
  2. String? meshName
)
override

Implementation

@override
Future reveal(ThermionEntity entity, String? meshName) async {
  final meshNamePtr =
      meshName?.toNativeUtf8(allocator: allocator).cast<Char>() ?? nullptr;
  final result = reveal_mesh(_sceneManager!, entity, meshNamePtr) == 1;
  allocator.free(meshNamePtr);
  if (!result) {
    throw Exception("Failed to reveal mesh $meshName");
  }
}