class
ScriptRRefBase
Interop class between C++
& CLR for RRefBase and RRef
<T
>.
Public
Constructors
ScriptRRefBase
Methods
staticGetAssemblyName
staticGetNamespace
staticGetTypeName
staticSetupScriptBindings
staticCreateScriptObject
Returns null as resource references cannot be created statically.
Their script object type is mutable depending on the resource type they are referencing. Use CreateScriptObject() that accepts a resource handle instead.
staticCreateScriptObject
Creates a new resource reference script object for the provided resource.
- handle
- Handle to the resource to wrap.
- rawType
- Class of the RRef type to use for wrapping the resource. If null then the resource will be wrapped in a non-specific RRefBase object. Otherwise it will be wrapped in a templated RRef <T > object. In the latter case caller is responsible for ensuring the template parameter of RRef matches the actual resource type.
staticBindGenericParam
Creates a RRef type with the provided class bound as its template parameter.
GetNativeObject
GetLifetimeTrackingMode
staticCreateScriptObjectAndWrapper
Creates a new script object and a script object wrapper of , and associates them with the provided native object.
Should not be called if already has an associated script object.
~TScriptObjectWrapper<SelfType, BaseType>
RecreateScriptObjectAfterScriptReload
staticGetScriptObjectWrapper
Returns the script object wrapper associated with the provided script object.
staticGetMetaData
Returns the meta-data storing information about the script type.
staticInitializeMetaDataAtLoadTime
Takes care of initializing the meta-data when the application first load.
The meta-data will be registered with a global manager that will ensure it is kept up-to-date after operations such as assembly (re)load.
Protected
Methods
BindToScriptObject
Stores a pointer to itself in the script object.
This ensures that calls to GetScriptObjectWrapper() can return the script object wrapper associated with the script object.
Fields
mNativeObject
Private
Methods
NotifyScriptObjectDestroyed
Notifies the wrapper that the script object is about to be destroyed.
staticInternalIsLoaded
*********************************************************************