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 );
}