ModelLoadRequest
from panda3d.core import ModelLoadRequest
- class ModelLoadRequest
Bases:
Bases:
AsyncTask
A class object that manages a single asynchronous model load request. Create a new ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
Inheritance diagram
- __init__(name: str, filename: Filename, options: LoaderOptions, loader: Loader)
Create a new
ModelLoadRequest
, and add it to the loader via load_async(), to begin an asynchronous load.
- property filename Filename
Returns the filename associated with this asynchronous
ModelLoadRequest
.
- static get_class_type() TypeHandle
- get_filename() Filename
Returns the filename associated with this asynchronous
ModelLoadRequest
.
- get_loader() Loader
Returns the Loader object associated with this asynchronous
ModelLoadRequest
.
- get_model() PandaNode
Returns the model that was loaded asynchronously, if any, or null if there was an error. It is an error to call this unless
done()
returns true.Deprecated: Use
result()
instead.
- get_options() LoaderOptions
Returns the
LoaderOptions
associated with this asynchronousModelLoadRequest
.
- is_ready() bool
Returns true if this request has completed, false if it is still pending or if it has been cancelled. When this returns true, you may retrieve the model loaded by calling
get_model()
. Equivalent toreq.done() and not req.cancelled()
.
- property loader Loader
Returns the Loader object associated with this asynchronous
ModelLoadRequest
.
- property options LoaderOptions
Returns the
LoaderOptions
associated with this asynchronousModelLoadRequest
.