Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / rendering-basic-pbr / model-pbr.cpp
index 565f5a7..d570b73 100644 (file)
@@ -70,10 +70,10 @@ void ModelPbr::Init( Shader shader, const std::string& modelUrl, const Vector3&
   renderer.SetProperty( Renderer::Property::FACE_CULLING_MODE, FaceCullingMode::BACK );
 
   mActor = Actor::New();
-  mActor.SetAnchorPoint( AnchorPoint::CENTER );
-  mActor.SetParentOrigin( ParentOrigin::CENTER );
-  mActor.SetPosition( position );
-  mActor.SetSize( size );
+  mActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+  mActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+  mActor.SetProperty( Actor::Property::POSITION, position );
+  mActor.SetProperty( Actor::Property::SIZE, size );
   mActor.AddRenderer( renderer );
 }