Object hoding reference to resource.
More...
Object hoding reference to resource.
In destructor release the resource
if (resoruce.IsValid())
{
IEntity rootBall = GetGame().SpawnEntityPrefab(resource);
}
Object hoding reference to resource.
Definition: Resource.c:25
static proto ref Resource Load(ResourceName name)
Loads object from data, or gets it from cache.
◆ GetResource()
◆ IsValid()
proto external bool Resource.IsValid |
( |
| ) |
|
◆ Load()
Loads object from data, or gets it from cache.
The documentation for this interface was generated from the following file:
- Core/generated/Resources/Resource.c