Skip to content

Commit

Permalink
Make Il2Cpp.Object::unbox return a Il2Cpp.ValueType instead of a Nati…
Browse files Browse the repository at this point in the history
…vePointer
  • Loading branch information
vfsfitvnm committed Mar 20, 2022
1 parent 0ecdd4e commit 19f8aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/il2cpp/structs/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ class Il2CppObject extends NativeStruct {
}

/** Unboxes the value type out of this object. */
unbox(): NativePointer {
return Il2Cpp.Api._objectUnbox(this);
unbox(): Il2Cpp.ValueType {
return new Il2Cpp.ValueType(Il2Cpp.Api._objectUnbox(this), this.class.type);
}

/** Releases the lock on an object and blocks the current thread until it reacquires the lock. */
Expand Down

0 comments on commit 19f8aed

Please sign in to comment.