question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[template] Position of template object resets to 0

See original GitHub issue

I’m having some issues when applying the following template:

<script id="boxesTemplate" type="text/html">
            <a-box width="0.2" height="1" depth="0.2" position="0 0.5 -0.2"></a-box>
            <a-box width="0.2" height="1" depth="0.2" position="-0.2 0.5 0.2"></a-box>
            <a-box width="0.2" height="1" depth="0.2" position="0.2 0.5 0"></a-box>
            <a-box width="1" height="0.2" depth="1"></a-box>
</script>

When applied to an entity the child <a-box> entities come through, but their position resets to 0:

<a-entity template="src: #boxesTemplate;"></a-entity>

I’m using aframe-template-component v3.2.1 from npm

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ngokevincommented, Dec 16, 2017

I’ll try to look some time. Feel free to debug the component, it’s not too complicated.

0reactions
arpucommented, Jan 21, 2018

any news on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

C++ classes: How does one 'reset' a template field in the move ...
I'm writing a Node class for a Singly Linked List assignment. The class has two fields: elem and next. Elem is templated and...
Read more >
When dropping groups from palettes on some existing group, the ...
On groupTemplate mouse drop event when we handle group creating the position of new group just gets reset to (0,0). Below is the...
Read more >
Reset attributes to template specification
Use PI Builder to reset the values of attributes and the configurations of attribute data references to those in the template.
Read more >
object-position - CSS: Cascading Style Sheets - MDN Web Docs
The object-position CSS property specifies the alignment of the selected replaced element's contents within the element's box.
Read more >
Beyond the Basics - Resetting Attributes to Template in Bulk
00:00 Overview00:46 Investigate data in error01:25 Reset attributes to template in bulk with PI Builder03:08 Validate reset to template03:25 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found