Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
427 views
in Technique[技术] by (71.8m points)

swift - How to installGestures on Reality Composer

is there a way to add installGestures in reality composer?

i am able to do it in code, but i don`t want to mix too much code and ui parts. so i am searching how i can do the drag and drop part in reality composer.

here is the code snipit to do it in code and what i did so far.

arView.installGestures([.translation], for: modelEntity)

does anyone know how to enable this in reality composer?

thanks

question from:https://stackoverflow.com/questions/65886331/how-to-installgestures-on-reality-composer

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Reality Composer 1.5 allows you implement gestures only for running animated behaviours. At the moment there's no way to turn on Tap, Rotation or Pinch gestures in Reality Composer. Only via RealityKit, as you indicated.

arView.installGestures([.all], for: entity)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...