 |
SceneCacheObject Method |
CacheObject sets the specified objectToCache to the specified key in the cache.
The value can be retrieved by
GetCachedObjectT(String) or removed by
RemoveCachedObject(String) method.
When a
Mesh object is cached, this will set
IsSceneCached to true and prevent disposing the mesh (by calling Dispose method) before the Scene is disposed or before the mesh is removed from the cache.
Mesh and GpuImage objects can be cached only in one Scene object.
This method is thread safe and can be called from any thread.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Scene.CacheObject(System.String,System.Object)"]
See Also