c# - Unity3D / Vuforia can PAUSE the image target or Game Object? -
i trying "freeze" or hold active 3d object on photographic camera without target image "physical" pointed @ device camera.
i tried many things maintain / freeze gameobjet on camera, follow links: https://developer.vuforia.com/resources/api/class_q_c_a_r_1_1_image_tracker#a3d5fce135919fe8c02ef69bad9e2b613 , https://developer.vuforia.com/forum/ios/dataset-loading-name closest get, things "get active target", store in variable , utilize when "tracker lost", not work well. believe old documents , new, hinted not possible trying.
follows close something:
private dataset dataset; void update () { if (input.touchcount> 0) { imagetracker imgtracker = trackermanager.instance.gettracker<imagetracker>() imagetracker; dataset = (dataset) imgtracker.getactivedatasets(); if (istofreeze) { imgtracker.activatedataset (dataset); } } }
and error when seek activatedataset:
invalidcastexception: can not cast source type destination type.
if said confusing, please, tell me improve english language ( im brazil ).
thanks read , help!
imgtracker.getactivedatasets();
homecoming array use imgtracker.getactivedataset();
instead or have loop through array , activate it
ienumerable dataset = imagetracker.getactivedatasets(); foreach (dataset d in dataset) { imagetracker.activatedataset(d); }
c# unity3d
No comments:
Post a Comment