最終更新:2021-02-25 (木) 14:40:31 (1127d)
AFRAME.registerComponent
Top / AFRAME.registerComponent
AFRAME.registerComponent('foo', { schema: { bar: {type: 'number'}, baz: {type: 'string'} }, init: function () { // Do something when component first attached. }, update: function () { // Do something when component's data is updated. }, remove: function () { // Do something the component or its entity is detached. }, tick: function (time, timeDelta) { // Do something on every scene tick or frame. } });
A-Frame/コンポーネント
- animation
- camera
- cursor
- position
- geometry
- layer
- light
- line
- link
- material
- position
- rayaster
- rotation
- scale