| | 1 | | using DCL.Controllers; |
| | 2 | | using DCL.Models; |
| | 3 | |
|
| | 4 | | namespace DCL.Components |
| | 5 | | { |
| | 6 | | public class GLTFShape : LoadableShape<LoadWrapper_GLTF, LoadableShape.Model> |
| | 7 | | { |
| 88 | 8 | | public override string componentName => "GLTF Shape"; |
| | 9 | |
|
| 166 | 10 | | public GLTFShape() { } |
| | 11 | |
|
| 69 | 12 | | public override int GetClassId() { return (int) CLASS_ID.GLTF_SHAPE; } |
| | 13 | |
|
| | 14 | | public override string ToString() |
| | 15 | | { |
| 0 | 16 | | if (scene == null || scene.contentProvider == null || model == null) |
| 0 | 17 | | return base.ToString(); |
| | 18 | |
|
| | 19 | | string fullUrl; |
| | 20 | |
|
| 0 | 21 | | bool found = scene.contentProvider.TryGetContentsUrl(model.src, out fullUrl); |
| | 22 | |
|
| 0 | 23 | | if (!found) |
| 0 | 24 | | fullUrl = "Not found!"; |
| | 25 | |
|
| 0 | 26 | | return $"{componentName} (src = {model.src}, full url = {fullUrl}"; |
| | 27 | | } |
| | 28 | | } |
| | 29 | | } |