private void GmpBlocks(string filePath, short itemId) { _asset.GetGumpDimensions(itemId, out int width, out int height); Name = filePath; Blocks = new SiObject[] { new SiPrimitive { Type = PrimitiveType.Cube, Name = Name, Properties = new[] { new Ref <SiProperty>(1) }, Width = width / ConvertUtils.MeterInUnits, Height = height / ConvertUtils.MeterInUnits }, new SiTexturingProperty { TextureCount = 1, BaseTexture = new TexDesc { Source = new Ref <SiSourceTexture>(2) } }, new SiSourceTexture { FilePath = filePath }, }; }