-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
Describe the bug
In your Playground, I changed the codes a little bit to test ref
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core';
import { OrbitControls } from '@tresjs/cientos';
import { defineComponent, shallowRef, onMounted } from "vue"
const meshRef = shallowRef()
onMounted(() => {
console.log(meshRef)
console.log(meshRef.value)
})
</script>
<template>
<TresCanvas window-size clear-color="#82DBC5">
<TresPerspectiveCamera :position="[9, 9, 9]" />
<OrbitControls />
<TresMesh ref="meshRef" :position="[-2, 2, 0]" :rotation="[0, Math.PI, 0]" :name="'dd'">
<TresConeGeometry :args="[1, 1.5, 3]" />
<TresMeshToonMaterial color="#82DBC5" />
</TresMesh>
which comes out
RefImpl {__v_isShallow: true, dep: undefined, __v_isRef: true, _rawValue: undefined, _value: undefined}
undefined
Reproduction
Steps to reproduce
No response
System Info
Used Package Manager
npm
Code of Conduct
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
alvarosabu
Metadata
Metadata
Assignees
Labels
No labels