Version: 1.3
LanguageEnglish
  • C#

OpenHarmonyJSClass

class in UnityEngine

/

Inherits from:OpenHarmonyJSBase

/

Implemented in:UnityEngine.OpenHarmonyJSModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

OpenHarmonyJSCalss is the Unity representation of a generic instance of a JavaScript class.

Constructors

OpenHarmonyJSClassConstruct a OpenHarmonyJSClass from exported name.

Public Methods

CallStaticCall static method of the JavaScript class.
GetStaticGet static member of this class.
SetStaticSet static member of this class.

Inherited Members

Public Methods

DisposeUse to dispose a OpenHarmonyJSBase object.
GetNapiRefGet napi reference of a JavaScript class or object.
GetNapiValueGet napi value of a JavaScript class or object.
ToStringConvert the napi value to string.

Protected Methods

CallImplCall JavaScript function.
GetImplGet value of specified field.
SetImplSet value of specified field.